Searched refs:acc_mode (Results 1 – 7 of 7) sorted by relevance
/fs/ |
D | open.c | 1026 int acc_mode = ACC_MODE(flags); in build_open_flags() local 1072 if (!(acc_mode & MAY_WRITE)) in build_open_flags() 1079 acc_mode = 0; in build_open_flags() 1095 acc_mode |= MAY_WRITE; in build_open_flags() 1100 acc_mode |= MAY_APPEND; in build_open_flags() 1102 op->acc_mode = acc_mode; in build_open_flags()
|
D | internal.h | 126 int acc_mode; member
|
D | namei.c | 3197 int acc_mode, int flag) in may_open() argument 3210 if (acc_mode & MAY_WRITE) in may_open() 3212 if (acc_mode & MAY_EXEC) in may_open() 3222 if (acc_mode & MAY_EXEC) in may_open() 3227 if ((acc_mode & MAY_EXEC) && path_noexec(path)) in may_open() 3232 error = inode_permission(mnt_userns, inode, MAY_OPEN | acc_mode); in may_open() 3570 int acc_mode; in do_open() local 3595 acc_mode = op->acc_mode; in do_open() 3599 acc_mode = 0; in do_open() 3606 error = may_open(mnt_userns, &nd->path, acc_mode, open_flag); in do_open() [all …]
|
D | exec.c | 135 .acc_mode = MAY_READ | MAY_EXEC, in SYSCALL_DEFINE1() 916 .acc_mode = MAY_EXEC, in do_open_execat()
|
/fs/overlayfs/ |
D | util.c | 509 int err, acc_mode; in ovl_path_open() local 516 acc_mode = MAY_READ; in ovl_path_open() 519 acc_mode = MAY_WRITE; in ovl_path_open() 525 err = inode_permission(&init_user_ns, inode, acc_mode | MAY_OPEN); in ovl_path_open()
|
D | file.c | 48 int acc_mode = ACC_MODE(flags); in ovl_open_realfile() local 52 acc_mode |= MAY_APPEND; in ovl_open_realfile() 55 err = inode_permission(&init_user_ns, realinode, MAY_OPEN | acc_mode); in ovl_open_realfile()
|
/fs/nfs/ |
D | nfs4proc.c | 3057 fmode_t acc_mode = _nfs4_ctx_to_accessmode(ctx); in _nfs4_open_and_get_state() local 3111 acc_mode, flags); in _nfs4_open_and_get_state()
|