]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - security/tomoyo/tomoyo.c
TOMOYO: Use structure for passing common arguments.
[net-next-2.6.git] / security / tomoyo / tomoyo.c
index dedd97d0c163675a116ec48c95acd119b8547400..4120f5a0e1bcf9a5f3f9927401dcf01a23411a3d 100644 (file)
@@ -173,7 +173,7 @@ static int tomoyo_file_fcntl(struct file *file, unsigned int cmd,
                             unsigned long arg)
 {
        if (cmd == F_SETFL && ((arg ^ file->f_flags) & O_APPEND))
-               return tomoyo_check_rewrite_permission(file);
+               return tomoyo_path_perm(TOMOYO_TYPE_REWRITE, &file->f_path);
        return 0;
 }