diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2009-12-02 07:09:48 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-12-07 22:58:05 -0500 |
commit | 937bf6133b21b16965f75223085f4314ae32b8eb (patch) | |
tree | 4a042bc9298ffddfaf4017a5796cae46e9594d2c /security/tomoyo/tomoyo.h | |
parent | 5d0901a3a0c39c97ca504f73d24030f63cfc9fa2 (diff) |
TOMOYO: Add rest of file operation restrictions.
LSM hooks for chmod()/chown()/chroot() are now ready.
This patch utilizes these hooks.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/tomoyo.h')
-rw-r--r-- | security/tomoyo/tomoyo.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/security/tomoyo/tomoyo.h b/security/tomoyo/tomoyo.h index cd6ba0bf7069..fac02655ea4b 100644 --- a/security/tomoyo/tomoyo.h +++ b/security/tomoyo/tomoyo.h | |||
@@ -64,11 +64,19 @@ int tomoyo_find_next_domain(struct linux_binprm *bprm); | |||
64 | #define TOMOYO_TYPE_TRUNCATE_ACL 12 | 64 | #define TOMOYO_TYPE_TRUNCATE_ACL 12 |
65 | #define TOMOYO_TYPE_SYMLINK_ACL 13 | 65 | #define TOMOYO_TYPE_SYMLINK_ACL 13 |
66 | #define TOMOYO_TYPE_REWRITE_ACL 14 | 66 | #define TOMOYO_TYPE_REWRITE_ACL 14 |
67 | #define TOMOYO_MAX_SINGLE_PATH_OPERATION 15 | 67 | #define TOMOYO_TYPE_IOCTL_ACL 15 |
68 | #define TOMOYO_TYPE_CHMOD_ACL 16 | ||
69 | #define TOMOYO_TYPE_CHOWN_ACL 17 | ||
70 | #define TOMOYO_TYPE_CHGRP_ACL 18 | ||
71 | #define TOMOYO_TYPE_CHROOT_ACL 19 | ||
72 | #define TOMOYO_TYPE_MOUNT_ACL 20 | ||
73 | #define TOMOYO_TYPE_UMOUNT_ACL 21 | ||
74 | #define TOMOYO_MAX_SINGLE_PATH_OPERATION 22 | ||
68 | 75 | ||
69 | #define TOMOYO_TYPE_LINK_ACL 0 | 76 | #define TOMOYO_TYPE_LINK_ACL 0 |
70 | #define TOMOYO_TYPE_RENAME_ACL 1 | 77 | #define TOMOYO_TYPE_RENAME_ACL 1 |
71 | #define TOMOYO_MAX_DOUBLE_PATH_OPERATION 2 | 78 | #define TOMOYO_TYPE_PIVOT_ROOT_ACL 2 |
79 | #define TOMOYO_MAX_DOUBLE_PATH_OPERATION 3 | ||
72 | 80 | ||
73 | #define TOMOYO_DOMAINPOLICY 0 | 81 | #define TOMOYO_DOMAINPOLICY 0 |
74 | #define TOMOYO_EXCEPTIONPOLICY 1 | 82 | #define TOMOYO_EXCEPTIONPOLICY 1 |