| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/include/c++/10.3.1/experimental/bits/ |
| H A D | fs_fwd.h | 141 enum class perms : unsigned { in _GLIBCXX_VISIBILITY() enum 166 constexpr perms in _GLIBCXX_VISIBILITY() 167 operator&(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 169 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 170 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 174 constexpr perms in _GLIBCXX_VISIBILITY() 175 operator|(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 177 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 178 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 182 constexpr perms in _GLIBCXX_VISIBILITY() [all …]
|
| H A D | fs_dir.h | 62 perms __prms = perms::unknown) noexcept in _GLIBCXX_VISIBILITY() 74 perms permissions() const noexcept { return _M_perms; } in _GLIBCXX_VISIBILITY() 78 void permissions(perms __prms) noexcept { _M_perms = __prms; } in _GLIBCXX_VISIBILITY() 82 perms _M_perms; in _GLIBCXX_VISIBILITY()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include/c++/10.3.1/experimental/bits/ |
| H A D | fs_fwd.h | 141 enum class perms : unsigned { in _GLIBCXX_VISIBILITY() enum 166 constexpr perms in _GLIBCXX_VISIBILITY() 167 operator&(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 169 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 170 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 174 constexpr perms in _GLIBCXX_VISIBILITY() 175 operator|(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 177 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 178 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 182 constexpr perms in _GLIBCXX_VISIBILITY() [all …]
|
| /OK3568_Linux_fs/kernel/security/apparmor/ |
| H A D | file.c | 90 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() argument 109 u32 mask = perms->audit; in aa_audit_file() 122 aad(&sa)->request = aad(&sa)->request & ~perms->allow; in aa_audit_file() 125 if (aad(&sa)->request & perms->kill) in aa_audit_file() 129 if ((aad(&sa)->request & perms->quiet) && in aa_audit_file() 132 aad(&sa)->request &= ~perms->quiet; in aa_audit_file() 138 aad(&sa)->denied = aad(&sa)->request & ~perms->allow; in aa_audit_file() 221 struct aa_perms perms = { }; in aa_compute_fperms() local 224 perms.allow = map_old_perms(dfa_user_allow(dfa, state)); in aa_compute_fperms() 225 perms.audit = map_old_perms(dfa_user_audit(dfa, state)); in aa_compute_fperms() [all …]
|
| H A D | lib.c | 290 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() argument 294 perms->audit = ALL_PERMS_MASK; in aa_apply_modes_to_perms() 297 perms->quiet = 0; in aa_apply_modes_to_perms() 300 perms->audit = 0; in aa_apply_modes_to_perms() 303 perms->quiet = ALL_PERMS_MASK; in aa_apply_modes_to_perms() 308 perms->kill = ALL_PERMS_MASK; in aa_apply_modes_to_perms() 310 perms->complain = ALL_PERMS_MASK; in aa_apply_modes_to_perms() 326 struct aa_perms *perms) in aa_compute_perms() argument 328 *perms = (struct aa_perms) { in aa_compute_perms() 337 perms->allow |= map_other(dfa_other_allow(dfa, state)); in aa_compute_perms() [all …]
|
| H A D | domain.c | 135 struct aa_perms *perms) in label_compound_match() argument 152 *perms = allperms; in label_compound_match() 164 *perms = aa_compute_fperms(profile->file.dfa, state, &cond); in label_compound_match() 165 aa_apply_modes_to_perms(profile, perms); in label_compound_match() 166 if ((perms->allow & request) != request) in label_compound_match() 172 *perms = nullperms; in label_compound_match() 195 struct aa_perms *perms) in label_components_match() argument 219 aa_perms_accum(perms, &tmp); in label_components_match() 228 aa_perms_accum(perms, &tmp); in label_components_match() 231 if ((perms->allow & request) != request) in label_components_match() [all …]
|
| H A D | mount.c | 134 struct aa_perms *perms, const char *info, int error) in audit_mount() argument 140 u32 mask = perms->audit; in audit_mount() 153 request = request & ~perms->allow; in audit_mount() 155 if (request & perms->kill) in audit_mount() 159 if ((request & perms->quiet) && in audit_mount() 162 request &= ~perms->quiet; in audit_mount() 173 if (data && (perms->audit & AA_AUDIT_DATA)) in audit_mount() 216 struct aa_perms perms = { in compute_mnt_perms() local 223 return perms; in compute_mnt_perms() 243 void *data, bool binary, struct aa_perms *perms) in do_match_mnt() argument [all …]
|
| H A D | net.c | 111 struct aa_perms perms = { }; in aa_profile_af_perm() local 128 aa_compute_perms(profile->policy.dfa, state, &perms); in aa_profile_af_perm() 129 aa_apply_modes_to_perms(profile, &perms); in aa_profile_af_perm() 131 return aa_check_perms(profile, &perms, request, sa, audit_net_cb); in aa_profile_af_perm() 217 struct aa_perms perms = { }; in aa_secmark_perm() local 232 perms.deny = ALL_PERMS_MASK; in aa_secmark_perm() 234 perms.allow = ALL_PERMS_MASK; in aa_secmark_perm() 237 perms.audit = ALL_PERMS_MASK; in aa_secmark_perm() 241 aa_apply_modes_to_perms(profile, &perms); in aa_secmark_perm() 243 return aa_check_perms(profile, &perms, request, sa, audit_net_cb); in aa_secmark_perm()
|
| H A D | ipc.c | 67 struct aa_perms perms = { }; in profile_ptrace_perm() local 71 &perms); in profile_ptrace_perm() 72 aa_apply_modes_to_perms(profile, &perms); in profile_ptrace_perm() 73 return aa_check_perms(profile, &perms, request, sa, audit_ptrace_cb); in profile_ptrace_perm() 191 struct aa_perms perms; in profile_signal_perm() local 203 aa_label_match(profile, peer, state, false, request, &perms); in profile_signal_perm() 204 aa_apply_modes_to_perms(profile, &perms); in profile_signal_perm() 205 return aa_check_perms(profile, &perms, request, sa, audit_signal_cb); in profile_signal_perm()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include/c++/10.3.1/bits/ |
| H A D | fs_fwd.h | 134 enum class perms : unsigned { in _GLIBCXX_VISIBILITY() enum 156 constexpr perms in _GLIBCXX_VISIBILITY() 157 operator&(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 159 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 160 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 164 constexpr perms in _GLIBCXX_VISIBILITY() 165 operator|(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 167 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 168 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 172 constexpr perms in _GLIBCXX_VISIBILITY() [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/include/c++/10.3.1/bits/ |
| H A D | fs_fwd.h | 134 enum class perms : unsigned { in _GLIBCXX_VISIBILITY() enum 156 constexpr perms in _GLIBCXX_VISIBILITY() 157 operator&(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 159 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 160 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 164 constexpr perms in _GLIBCXX_VISIBILITY() 165 operator|(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 167 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 168 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 172 constexpr perms in _GLIBCXX_VISIBILITY() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/spmi/ |
| H A D | spmi-sandbox.c | 34 u8 perms; /* Access permissions */ member 79 if (regs[off].perms & EMUL_PERM_W) in sandbox_spmi_write() 104 if (regs[off].perms & EMUL_PERM_R) in sandbox_spmi_read() 123 regs[4].perms = EMUL_PERM_R; in sandbox_spmi_probe() 125 regs[5].perms = EMUL_PERM_R; in sandbox_spmi_probe() 128 regs[8].perms = EMUL_PERM_RW; in sandbox_spmi_probe() 130 regs[0x40].perms = EMUL_PERM_RW; in sandbox_spmi_probe() 132 regs[0x41].perms = EMUL_PERM_RW; in sandbox_spmi_probe() 134 regs[0x42].perms = EMUL_PERM_RW; in sandbox_spmi_probe() 137 regs[0x45].perms = EMUL_PERM_RW; in sandbox_spmi_probe() [all …]
|
| /OK3568_Linux_fs/kernel/security/apparmor/include/ |
| H A D | file.h | 159 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, 187 struct aa_perms *perms); 191 int flags, struct aa_perms *perms); 219 u32 perms = 0; in aa_map_file_to_perms() local 222 perms |= MAY_WRITE; in aa_map_file_to_perms() 224 perms |= MAY_READ; in aa_map_file_to_perms() 226 if ((flags & O_APPEND) && (perms & MAY_WRITE)) in aa_map_file_to_perms() 227 perms = (perms & ~MAY_WRITE) | MAY_APPEND; in aa_map_file_to_perms() 230 perms |= MAY_WRITE; in aa_map_file_to_perms() 232 perms |= AA_MAY_CREATE; in aa_map_file_to_perms() [all …]
|
| H A D | perms.h | 143 struct aa_perms *perms); 145 struct aa_perms *perms); 149 int type, u32 request, struct aa_perms *perms); 153 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms,
|
| /OK3568_Linux_fs/kernel/drivers/s390/crypto/ |
| H A D | zcrypt_api.c | 129 struct ap_perms perms; member 175 for (i = 0; i < sizeof(zcdndev->perms.ioctlm) / sizeof(long); i++) in ioctlmask_show() 178 "%016lx", zcdndev->perms.ioctlm[i]); in ioctlmask_show() 195 rc = ap_parse_mask_str(buf, zcdndev->perms.ioctlm, in ioctlmask_store() 217 for (i = 0; i < sizeof(zcdndev->perms.apm) / sizeof(long); i++) in apmask_show() 220 "%016lx", zcdndev->perms.apm[i]); in apmask_show() 237 rc = ap_parse_mask_str(buf, zcdndev->perms.apm, in apmask_store() 259 for (i = 0; i < sizeof(zcdndev->perms.aqm) / sizeof(long); i++) in aqmask_show() 262 "%016lx", zcdndev->perms.aqm[i]); in aqmask_show() 279 rc = ap_parse_mask_str(buf, zcdndev->perms.aqm, in aqmask_store() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mm/ |
| H A D | init.c | 523 static void set_section_perms(struct section_perm *perms, int n, bool set, in set_section_perms() argument 533 if (!IS_ALIGNED(perms[i].start, SECTION_SIZE) || in set_section_perms() 534 !IS_ALIGNED(perms[i].end, SECTION_SIZE)) { in set_section_perms() 536 perms[i].name, perms[i].start, perms[i].end, in set_section_perms() 541 for (addr = perms[i].start; in set_section_perms() 542 addr < perms[i].end; in set_section_perms() 544 section_update(addr, perms[i].mask, in set_section_perms() 545 set ? perms[i].prot : perms[i].clear, mm); in set_section_perms() 555 static void update_sections_early(struct section_perm perms[], int n) in update_sections_early() argument 564 set_section_perms(perms, n, true, s->mm); in update_sections_early() [all …]
|
| /OK3568_Linux_fs/kernel/scripts/selinux/genheaders/ |
| H A D | genheaders.c | 15 const char *perms[sizeof(unsigned) * 8 + 1]; member 65 for (j = 0; map->perms[j]; j++) in main() 66 map->perms[j] = stoupperx(map->perms[j]); in main() 128 for (j = 0; map->perms[j]; j++) { in main() 131 map->name, map->perms[j]); in main() 135 39-len, map->perms[j], 1U<<j); in main()
|
| /OK3568_Linux_fs/kernel/drivers/soc/qcom/ |
| H A D | rmtfs_mem.c | 33 unsigned int perms; member 174 struct qcom_scm_vmperm perms[2]; in qcom_rmtfs_mem_probe() local 239 perms[0].vmid = QCOM_SCM_VMID_HLOS; in qcom_rmtfs_mem_probe() 240 perms[0].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe() 241 perms[1].vmid = vmid; in qcom_rmtfs_mem_probe() 242 perms[1].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe() 244 rmtfs_mem->perms = BIT(QCOM_SCM_VMID_HLOS); in qcom_rmtfs_mem_probe() 246 &rmtfs_mem->perms, perms, 2); in qcom_rmtfs_mem_probe() 270 if (rmtfs_mem->perms) { in qcom_rmtfs_mem_remove() 275 &rmtfs_mem->perms, &perm, 1); in qcom_rmtfs_mem_remove()
|
| /OK3568_Linux_fs/kernel/fs/nfsd/ |
| H A D | nfs4acl.c | 431 struct posix_ace_state perms; member 526 low_mode_from_nfs4(state->users->aces[i].perms.allow, in posix_state_to_acl() 529 add_to_mask(state, &state->users->aces[i].perms); in posix_state_to_acl() 540 low_mode_from_nfs4(state->groups->aces[i].perms.allow, in posix_state_to_acl() 543 add_to_mask(state, &state->groups->aces[i].perms); in posix_state_to_acl() 582 a->aces[i].perms.allow = state->everyone.allow; in find_uid() 583 a->aces[i].perms.deny = state->everyone.deny; in find_uid() 599 a->aces[i].perms.allow = state->everyone.allow; in find_gid() 600 a->aces[i].perms.deny = state->everyone.deny; in find_gid() 610 deny_bits(&a->aces[i].perms, mask); in deny_bits_array() [all …]
|
| /OK3568_Linux_fs/kernel/fs/orangefs/ |
| H A D | orangefs-utils.c | 106 if (attrs->perms & ORANGEFS_O_EXECUTE) in orangefs_inode_perms() 108 if (attrs->perms & ORANGEFS_O_WRITE) in orangefs_inode_perms() 110 if (attrs->perms & ORANGEFS_O_READ) in orangefs_inode_perms() 113 if (attrs->perms & ORANGEFS_G_EXECUTE) in orangefs_inode_perms() 115 if (attrs->perms & ORANGEFS_G_WRITE) in orangefs_inode_perms() 117 if (attrs->perms & ORANGEFS_G_READ) in orangefs_inode_perms() 120 if (attrs->perms & ORANGEFS_U_EXECUTE) in orangefs_inode_perms() 122 if (attrs->perms & ORANGEFS_U_WRITE) in orangefs_inode_perms() 124 if (attrs->perms & ORANGEFS_U_READ) in orangefs_inode_perms() 127 if (attrs->perms & ORANGEFS_G_SGID) in orangefs_inode_perms() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/sw/siw/ |
| H A D | siw_mem.c | 106 mem->perms = rights & IWARP_ACCESS_MASK; in siw_mr_add_mem() 169 enum ib_access_flags perms, int len) in siw_check_mem() argument 182 if ((mem->perms & perms) < perms) { in siw_check_mem() 184 mem->perms, perms); in siw_check_mem() 223 enum ib_access_flags perms, u32 off, int len) in siw_check_sge() argument 248 rv = siw_check_mem(pd, *mem, sge->laddr + off, perms, len); in siw_check_sge()
|
| /OK3568_Linux_fs/kernel/fs/hfsplus/ |
| H A D | catalog.c | 81 void hfsplus_cat_set_perms(struct inode *inode, struct hfsplus_perm *perms) in hfsplus_cat_set_perms() argument 84 perms->rootflags |= HFSPLUS_FLG_IMMUTABLE; in hfsplus_cat_set_perms() 86 perms->rootflags &= ~HFSPLUS_FLG_IMMUTABLE; in hfsplus_cat_set_perms() 88 perms->rootflags |= HFSPLUS_FLG_APPEND; in hfsplus_cat_set_perms() 90 perms->rootflags &= ~HFSPLUS_FLG_APPEND; in hfsplus_cat_set_perms() 92 perms->userflags = HFSPLUS_I(inode)->userflags; in hfsplus_cat_set_perms() 93 perms->mode = cpu_to_be16(inode->i_mode); in hfsplus_cat_set_perms() 94 perms->owner = cpu_to_be32(i_uid_read(inode)); in hfsplus_cat_set_perms() 95 perms->group = cpu_to_be32(i_gid_read(inode)); in hfsplus_cat_set_perms() 98 perms->dev = cpu_to_be32(inode->i_nlink); in hfsplus_cat_set_perms() [all …]
|
| /OK3568_Linux_fs/kernel/scripts/selinux/mdp/ |
| H A D | mdp.c | 33 const char *perms[sizeof(unsigned) * 8 + 1]; member 88 for (j = 0; map->perms[j]; j++) in main() 89 fprintf(fout, "\t%s\n", map->perms[j]); in main() 109 for (j = 0; map->perms[j]; j++) in main() 110 fprintf(fout, "\t%s\n", map->perms[j]); in main()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | kernel.h | 884 #define VERIFY_OCTAL_PERMISSIONS(perms) \ argument 885 (BUILD_BUG_ON_ZERO((perms) < 0) + \ 886 BUILD_BUG_ON_ZERO((perms) > 0777) + \ 888 BUILD_BUG_ON_ZERO((((perms) >> 6) & 4) < (((perms) >> 3) & 4)) + \ 889 BUILD_BUG_ON_ZERO((((perms) >> 3) & 4) < ((perms) & 4)) + \ 891 BUILD_BUG_ON_ZERO((((perms) >> 6) & 2) < (((perms) >> 3) & 2)) + \ 893 BUILD_BUG_ON_ZERO((perms) & 2) + \ 894 (perms))
|
| /OK3568_Linux_fs/yocto/poky/scripts/ |
| H A D | relocate_sdk.py | 228 perms = os.stat(e)[stat.ST_MODE] variable 230 perms = None variable 232 os.chmod(e, perms|stat.S_IRWXU) 257 if perms: 258 os.chmod(e, perms)
|