Searched refs:acc_mode (Results 1 – 4 of 4) sorted by relevance
918 int acc_mode; in build_open_flags() local946 acc_mode = MAY_OPEN | ACC_MODE(flags); in build_open_flags()947 if (!(acc_mode & MAY_WRITE)) in build_open_flags()955 acc_mode = 0; in build_open_flags()957 acc_mode = MAY_OPEN | ACC_MODE(flags); in build_open_flags()964 acc_mode |= MAY_WRITE; in build_open_flags()969 acc_mode |= MAY_APPEND; in build_open_flags()971 op->acc_mode = acc_mode; in build_open_flags()
100 int acc_mode; member
2750 static int may_open(struct path *path, int acc_mode, int flag) in may_open() argument2758 if (!acc_mode) in may_open()2768 if (acc_mode & MAY_WRITE) in may_open()2782 error = inode_permission2(mnt, inode, acc_mode); in may_open()2868 int acc_mode; in atomic_open() local2970 acc_mode = op->acc_mode; in atomic_open()2974 acc_mode = MAY_OPEN; in atomic_open()2976 error = may_open(&file->f_path, acc_mode, open_flag); in atomic_open()3100 int acc_mode = op->acc_mode; in do_last() local3178 acc_mode = MAY_OPEN; in do_last()[all …]
123 .acc_mode = MAY_READ | MAY_EXEC | MAY_OPEN, in SYSCALL_DEFINE1()793 .acc_mode = MAY_EXEC | MAY_OPEN, in do_open_execat()