aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/domain.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2011-06-26 10:17:46 -0400
committerJames Morris <jmorris@namei.org>2011-06-28 19:31:20 -0400
commit0d2171d711cbfca84cc0001121be8a6cc8e4d148 (patch)
tree998c6fb0c61e15686a7b70276e17ad9e396741f4 /security/tomoyo/domain.c
parenta238cf5b89ed5285be8de56335665d023972f7d5 (diff)
TOMOYO: Rename directives.
Convert "allow_..." style directives to "file ..." style directives. By converting to the latter style, we can pack policy like "file read/write/execute /path/to/file". 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/domain.c')
-rw-r--r--security/tomoyo/domain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c
index d818717954f8..cb5d2b05c244 100644
--- a/security/tomoyo/domain.c
+++ b/security/tomoyo/domain.c
@@ -209,14 +209,14 @@ int tomoyo_write_transition_control(struct tomoyo_acl_param *param,
209 domainname = program; 209 domainname = program;
210 program = NULL; 210 program = NULL;
211 } 211 }
212 if (program) { 212 if (program && strcmp(program, "any")) {
213 if (!tomoyo_correct_path(program)) 213 if (!tomoyo_correct_path(program))
214 return -EINVAL; 214 return -EINVAL;
215 e.program = tomoyo_get_name(program); 215 e.program = tomoyo_get_name(program);
216 if (!e.program) 216 if (!e.program)
217 goto out; 217 goto out;
218 } 218 }
219 if (domainname) { 219 if (domainname && strcmp(domainname, "any")) {
220 if (!tomoyo_correct_domain(domainname)) { 220 if (!tomoyo_correct_domain(domainname)) {
221 if (!tomoyo_correct_path(domainname)) 221 if (!tomoyo_correct_path(domainname))
222 goto out; 222 goto out;