Home
last modified time | relevance | path

Searched refs:acc_mode (Results 1 – 6 of 6) sorted by relevance

/linux-3.4.99/fs/
Dopen.c883 int acc_mode; in build_open_flags() local
908 acc_mode = 0; in build_open_flags()
910 acc_mode = MAY_OPEN | ACC_MODE(flags); in build_open_flags()
917 acc_mode |= MAY_WRITE; in build_open_flags()
922 acc_mode |= MAY_APPEND; in build_open_flags()
924 op->acc_mode = acc_mode; in build_open_flags()
Dinternal.h93 int acc_mode; member
Dnamei.c2080 static int may_open(struct path *path, int acc_mode, int flag) in may_open() argument
2087 if (!acc_mode) in may_open()
2097 if (acc_mode & MAY_WRITE) in may_open()
2111 error = inode_permission(inode, acc_mode); in may_open()
2172 int acc_mode = op->acc_mode; in do_last() local
2277 acc_mode = MAY_OPEN; in do_last()
2334 error = may_open(&nd->path, acc_mode, open_flag); in do_last()
2339 error = ima_file_check(filp, op->acc_mode); in do_last()
Dexec.c123 .acc_mode = MAY_READ | MAY_EXEC | MAY_OPEN, in SYSCALL_DEFINE1()
771 .acc_mode = MAY_EXEC | MAY_OPEN, in open_exec()
/linux-3.4.99/security/tomoyo/
Dfile.c738 const u8 acc_mode = ACC_MODE(flag); in tomoyo_check_open_permission() local
750 if (acc_mode && in tomoyo_check_open_permission()
758 if (acc_mode & MAY_READ) in tomoyo_check_open_permission()
761 if (!error && (acc_mode & MAY_WRITE)) in tomoyo_check_open_permission()
/linux-3.4.99/ipc/
Dshm.c955 int acc_mode; in do_shmat() local
985 acc_mode = S_IRUGO; in do_shmat()
989 acc_mode = S_IRUGO | S_IWUGO; in do_shmat()
994 acc_mode |= S_IXUGO; in do_shmat()
1009 if (ipcperms(ns, &shp->shm_perm, acc_mode)) in do_shmat()