diff options
| author | James Morris <james.l.morris@oracle.com> | 2016-09-15 07:43:46 +0300 |
|---|---|---|
| committer | James Morris <james.l.morris@oracle.com> | 2016-09-15 07:43:46 +0300 |
| commit | a39f44faa8c7d84dff7d1fc0bc851c6499f94d7b (patch) | |
| tree | 2d417042ad3aaddd7ad5639ecdc1a6e1245b02a5 /security/smack/smack.h | |
| parent | 8ccc7d6bad84bebf1f1a6364d1fa04d3d7b575f6 (diff) | |
| parent | c60b906673eebb4f65840fa9dc204401caf276ea (diff) | |
| download | linux-a39f44faa8c7d84dff7d1fc0bc851c6499f94d7b.tar.xz | |
Merge branch 'smack-for-4.9' of http://github.com/cschaufler/smack-next into next
Diffstat (limited to 'security/smack/smack.h')
| -rw-r--r-- | security/smack/smack.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/security/smack/smack.h b/security/smack/smack.h index 26e58f1804b1..51fd30192c08 100644 --- a/security/smack/smack.h +++ b/security/smack/smack.h @@ -256,6 +256,16 @@ enum { #define MAY_LOCK 0x00002000 /* Locks should be writes, but ... */ #define MAY_BRINGUP 0x00004000 /* Report use of this rule */ +/* + * The policy for delivering signals is configurable. + * It is usually "write", but can be "append". + */ +#ifdef CONFIG_SECURITY_SMACK_APPEND_SIGNALS +#define MAY_DELIVER MAY_APPEND /* Signal delivery requires append */ +#else +#define MAY_DELIVER MAY_WRITE /* Signal delivery requires write */ +#endif + #define SMACK_BRINGUP_ALLOW 1 /* Allow bringup mode */ #define SMACK_UNCONFINED_SUBJECT 2 /* Allow unconfined label */ #define SMACK_UNCONFINED_OBJECT 3 /* Allow unconfined label */ |
