Searched refs:acc_mode (Results 1 – 7 of 7) sorted by relevance
/fs/ |
D | open.c | 1125 int acc_mode = ACC_MODE(flags); in build_open_flags() local 1179 if (!(acc_mode & MAY_WRITE)) in build_open_flags() 1186 acc_mode = 0; in build_open_flags() 1202 acc_mode |= MAY_WRITE; in build_open_flags() 1207 acc_mode |= MAY_APPEND; in build_open_flags() 1209 op->acc_mode = acc_mode; in build_open_flags()
|
D | namei.c | 3220 int acc_mode, int flag) in may_open() argument 3233 if (acc_mode & MAY_WRITE) in may_open() 3235 if (acc_mode & MAY_EXEC) in may_open() 3245 if (acc_mode & MAY_EXEC) in may_open() 3250 if ((acc_mode & MAY_EXEC) && path_noexec(path)) in may_open() 3255 error = inode_permission(mnt_userns, inode, MAY_OPEN | acc_mode); in may_open() 3589 int acc_mode; in do_open() local 3614 acc_mode = op->acc_mode; in do_open() 3618 acc_mode = 0; in do_open() 3625 error = may_open(mnt_userns, &nd->path, acc_mode, open_flag); in do_open() [all …]
|
D | internal.h | 130 int acc_mode; member
|
D | exec.c | 129 .acc_mode = MAY_READ | MAY_EXEC, in SYSCALL_DEFINE1() 914 .acc_mode = MAY_EXEC, in do_open_execat()
|
/fs/overlayfs/ |
D | util.c | 524 int err, acc_mode; in ovl_path_open() local 531 acc_mode = MAY_READ; in ovl_path_open() 534 acc_mode = MAY_WRITE; in ovl_path_open() 540 err = inode_permission(real_mnt_userns, inode, acc_mode | MAY_OPEN); in ovl_path_open()
|
D | file.c | 50 int acc_mode = ACC_MODE(flags); in ovl_open_realfile() local 54 acc_mode |= MAY_APPEND; in ovl_open_realfile() 58 err = inode_permission(real_mnt_userns, realinode, MAY_OPEN | acc_mode); in ovl_open_realfile()
|
/fs/nfs/ |
D | nfs4proc.c | 3049 fmode_t acc_mode = _nfs4_ctx_to_accessmode(ctx); in _nfs4_open_and_get_state() local 3105 acc_mode, flags); in _nfs4_open_and_get_state()
|