/freebsd/contrib/llvm-project/libcxx/include/__filesystem/ |
H A D | perms.h | 27 enum class perms : unsigned { enum 54 _LIBCPP_HIDE_FROM_ABI inline constexpr perms operator&(perms __lhs, perms __rhs) { 55 return static_cast<perms>(static_cast<unsigned>(__lhs) & static_cast<unsigned>(__rhs)); 58 _LIBCPP_HIDE_FROM_ABI inline constexpr perms operator|(perms __lhs, perms __rhs) { 59 return static_cast<perms>(static_cast<unsigned>(__lhs) | static_cast<unsigned>(__rhs)); 62 _LIBCPP_HIDE_FROM_ABI inline constexpr perms operator^(perms __lhs, perms __rhs) { 63 return static_cast<perms>(static_cast<unsigned>(__lhs) ^ static_cast<unsigned>(__rhs)); 66 _LIBCPP_HIDE_FROM_ABI inline constexpr perms operator~(perms __lhs) { 67 return static_cast<perms>(~static_cast<unsigned>(__lhs)); 70 _LIBCPP_HIDE_FROM_ABI inline perms& operator&=(perms& __lhs, perms __rhs) { return __lhs = __lhs & … [all …]
|
H A D | file_status.h | 29 _LIBCPP_HIDE_FROM_ABI explicit file_status(file_type __ft, perms __prms = perms::unknown) noexcept 43 _LIBCPP_HIDE_FROM_ABI perms permissions() const noexcept { return __prms_; } in permissions() 48 _LIBCPP_HIDE_FROM_ABI void permissions(perms __p) noexcept { __prms_ = __p; } in permissions() 60 perms __prms_;
|
/freebsd/lib/libc/posix1e/ |
H A D | acl_from_mode_np.c | 46 acl_permset_t perms; in acl_from_mode_np() local 62 acl_get_permset(entry, &perms); in acl_from_mode_np() 63 acl_clear_perms(perms); in acl_from_mode_np() 67 acl_add_perm(perms, ACL_READ); in acl_from_mode_np() 69 acl_add_perm(perms, ACL_WRITE); in acl_from_mode_np() 71 acl_add_perm(perms, ACL_EXECUTE); in acl_from_mode_np() 73 acl_set_permset(entry, perms); in acl_from_mode_np() 80 acl_get_permset(entry, &perms); in acl_from_mode_np() 81 acl_clear_perms(perms); in acl_from_mode_np() 85 acl_add_perm(perms, ACL_READ); in acl_from_mode_np() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/delegate/ |
H A D | zfs_allow_004_pos.ksh | 69 typeset perms="snapshot,reservation,compression,allow,\ 72 typeset perms="snapshot,reservation,compression,checksum,\ 77 perms="${perms},send" 83 log_must $ZFS allow -d $STAFF1 $perms $dtst 84 log_must verify_noperm $dtst $perms $STAFF1 86 log_must verify_perm $childfs $perms $STAFF1 95 log_must $ZFS allow -d -g $STAFF_GROUP $perms $dtst 96 log_must verify_noperm $dtst $perms $STAFF2 98 log_must verify_perm $childfs $perms $STAFF2 107 log_must $ZFS allow -d -e $perms $dtst [all …]
|
H A D | zfs_allow_003_pos.ksh | 64 typeset perms="snapshot,reservation,compression,allow,\ 67 typeset perms="snapshot,reservation,compression,checksum,\ 74 log_must $ZFS allow -l $STAFF1 $perms $dtst 75 log_must verify_perm $dtst $perms $STAFF1 77 log_must verify_noperm $childfs $perms \ 86 log_must $ZFS allow -l -g $STAFF_GROUP $perms $dtst 87 log_must verify_perm $dtst $perms $STAFF1 $STAFF2 89 log_must verify_noperm $childfs $perms \ 98 log_must $ZFS allow -l -e $perms $dtst 99 log_must verify_perm $dtst $perms $STAFF1 $STAFF2 $OTHER1 $OTHER2 [all …]
|
H A D | zfs_allow_005_pos.ksh | 64 typeset perms="snapshot,reservation,compression,allow,\ 67 typeset perms="snapshot,reservation,compression,checksum,\ 72 perms="${perms},send" 76 log_must $ZFS allow -c $perms $ROOT_TESTFS 91 log_must verify_perm $childfs $perms $user 93 log_must verify_noperm $childfs $perms $other
|
H A D | zfs_allow_002_pos.ksh | 71 typeset perms="snapshot,reservation,compression,send,allow,\ 74 typeset perms="snapshot,reservation,compression,checksum,\ 80 log_must $ZFS allow $STAFF_GROUP $perms $dtst 81 log_must verify_perm $dtst $perms $STAFF_GROUP 82 log_must verify_noperm $dtst $perms $STAFF1 $STAFF2 89 log_must $ZFS allow $STAFF_GROUP $perms $dtst 90 log_must verify_perm $dtst $perms $STAFF1 $STAFF2
|
H A D | zfs_allow_001_pos.ksh | 74 typeset perms="snapshot,reservation,compression,send,allow,\ 77 typeset perms="snapshot,reservation,compression,checksum,\ 87 log_must $ZFS allow everyone $perms $dtst 88 log_must verify_perm $dtst $perms $EVERYONE "everyone" 104 log_must $ZFS allow everyone $perms $dtst 105 log_must verify_perm $dtst $perms $EVERYONE
|
H A D | zfs_allow_010_pos.ksh | 63 set -A perms create true false \ 104 log_must $ZFS allow $STAFF1 ${perms[$i]} $dtst 106 if [[ ${perms[((i+k))]} == "true" ]]; then 107 log_must verify_perm $dtst ${perms[$i]} $STAFF1 109 log_must verify_noperm $dtst ${perms[$i]} $STAFF1
|
H A D | zfs_allow_012_neg.ksh | 57 set -A perms create snapshot mount send allow quota reservation \ 71 log_must $ZFS allow $STAFF1 ${perms[$i]} $dtst 72 log_must verify_noperm $dtst ${perms[$i]} $STAFF1
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/ |
H A D | zfs_allow_010_pos.ksh | 67 set -A perms create true false \ 101 set -A perms create true false \ 133 set -A perms create true false \ 167 perms[((n))]="sharenfs"; perms[((n+1))]="true"; perms[((n+2))]="false" 168 perms[((n+3))]="share"; perms[((n+4))]="true"; perms[((n+5))]="false" 179 log_must zfs allow $STAFF1 ${perms[$i]} $dtst 181 if [[ ${perms[((i+k))]} == "true" ]]; then 182 log_must verify_perm $dtst ${perms[$i]} $STAFF1 184 log_must verify_noperm $dtst ${perms[$i]} $STAFF1
|
H A D | zfs_allow_004_pos.ksh | 58 typeset perms="snapshot,reservation,compression,checksum,userprop" 63 log_must zfs allow -d $STAFF1 $perms $dtst 64 log_must verify_noperm $dtst $perms $STAFF1 66 log_must verify_perm $childfs $perms $STAFF1 75 log_must zfs allow -d -g $STAFF_GROUP $perms $dtst 76 log_must verify_noperm $dtst $perms $STAFF2 78 log_must verify_perm $childfs $perms $STAFF2 87 log_must zfs allow -d -e $perms $dtst 88 log_must verify_noperm $dtst $perms $OTHER1 $OTHER2 90 log_must verify_perm $childfs $perms $OTHER1 $OTHER2
|
H A D | zfs_allow_003_pos.ksh | 54 typeset perms="snapshot,reservation,compression,checksum,userprop" 59 log_must zfs allow -l $STAFF1 $perms $dtst 60 log_must verify_perm $dtst $perms $STAFF1 62 log_must verify_noperm $childfs $perms \ 71 log_must zfs allow -l -g $STAFF_GROUP $perms $dtst 72 log_must verify_perm $dtst $perms $STAFF1 $STAFF2 74 log_must verify_noperm $childfs $perms \ 83 log_must zfs allow -l -e $perms $dtst 84 log_must verify_perm $dtst $perms $STAFF1 $STAFF2 $OTHER1 $OTHER2 86 log_must verify_noperm $childfs $perms \
|
H A D | zfs_allow_002_pos.ksh | 70 typeset perms="snapshot,reservation,compression,checksum,send,userprop" 74 log_must zfs allow $STAFF_GROUP $perms $dtst 75 log_must verify_perm $dtst $perms $STAFF_GROUP 76 log_must verify_noperm $dtst $perms $STAFF1 $STAFF2 91 log_must zfs allow $STAFF_GROUP $perms $dtst 92 log_must verify_perm $dtst $perms $STAFF1 $STAFF2
|
H A D | zfs_allow_001_pos.ksh | 65 typeset perms="snapshot,reservation,compression,checksum,send,userprop" 73 log_must zfs allow everyone $perms $dtst 74 log_must verify_perm $dtst $perms $EVERYONE "everyone" 88 log_must zfs allow everyone $perms $dtst 89 log_must verify_perm $dtst $perms $EVERYONE
|
H A D | zfs_allow_012_neg.ksh | 59 set -A perms create snapshot mount send allow quota reservation \ 65 set -A perms create snapshot mount send allow quota reservation \ 71 set -A perms create snapshot mount send allow quota reservation \ 84 log_must zfs allow $STAFF1 ${perms[$i]} $dtst 85 log_must verify_noperm $dtst ${perms[$i]} $STAFF1
|
H A D | zfs_allow_005_pos.ksh | 53 typeset perms="snapshot,reservation,compression,checksum,userprop" 56 log_must zfs allow -c $perms $ROOT_TESTFS 71 log_must verify_perm $childfs $perms $user 73 log_must verify_noperm $childfs $perms $other
|
/freebsd/cddl/contrib/opensolaris/lib/pyzfs/common/ |
H A D | allow.py | 63 perms = raw[whokey].keys() 67 self.create.update(perms) 70 self.sets.setdefault(nwho, set()).update(perms) 96 d.setdefault(nwho, set()).update(perms) 111 for (nwho, perms) in sorted(d.items()): 115 if perms: 117 (nwho[1:], ",".join(sorted(perms))) 134 def args_to_perms(parser, options, who, perms): argument 140 if perms: 141 setperms = dict(((p, None) for p in perms if p[0] == "@")) [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | FileSystem.h | 85 enum perms { enum 111 inline perms operator|(perms l, perms r) { 112 return static_cast<perms>(static_cast<unsigned short>(l) | 115 inline perms operator&(perms l, perms r) { 116 return static_cast<perms>(static_cast<unsigned short>(l) & 119 inline perms &operator|=(perms &l, perms r) { 123 inline perms &operator&=(perms &l, perms r) { 127 inline perms operator~(perms x) { 129 return static_cast<perms>( 155 perms Perms = perms_not_known; [all …]
|
/freebsd/contrib/atf/atf-c++/detail/ |
H A D | fs_test.cpp | 382 #define perms(ur, uw, ux, gr, gw, gx, othr, othw, othx) \ in ATF_TEST_CASE_BODY() macro 397 perms(false, false, false, false, false, false, false, false, false); in ATF_TEST_CASE_BODY() 400 perms(false, false, false, false, false, false, false, false, true); in ATF_TEST_CASE_BODY() 403 perms(false, false, false, false, false, true, false, false, false); in ATF_TEST_CASE_BODY() 406 perms(false, false, true, false, false, false, false, false, false); in ATF_TEST_CASE_BODY() 409 perms(false, false, false, false, false, false, false, true, false); in ATF_TEST_CASE_BODY() 412 perms(false, false, false, false, true, false, false, false, false); in ATF_TEST_CASE_BODY() 415 perms(false, true, false, false, false, false, false, false, false); in ATF_TEST_CASE_BODY() 418 perms(false, false, false, false, false, false, true, false, false); in ATF_TEST_CASE_BODY() 421 perms(false, false, false, true, false, false, false, false, false); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_acl_platform_nfs4.c | 288 static struct { int portable; int machine; } perms[] = { in acl_permset_to_bitmap() 367 for (i = 0; i < (int)(sizeof(perms)/sizeof(perms[0])); ++i) in acl_permset_to_bitmap() 369 if (mask & perms[i].machine) in acl_permset_to_bitmap() 371 if (acl_get_perm_np(opaque_ps, perms[i].machine)) in acl_permset_to_bitmap() 373 permset |= perms[i].portable; in acl_permset_to_bitmap() 386 static struct { int portable; int machine; } perms[] = { in acl_flagset_to_bitmap() 423 for (i = 0; i < (int)(sizeof(perms)/sizeof(perms[0])); ++i) in acl_flagset_to_bitmap() 425 if (flags & perms[ in acl_flagset_to_bitmap() 289 static struct { int portable; int machine; } perms[] = { acl_permset_to_bitmap() local 387 static struct { int portable; int machine; } perms[] = { acl_flagset_to_bitmap() local 438 int perms; acl_match() local 492 int perms; acl_match() local 554 int perms; acl_match() local 613 int perms; acl_match() local [all...] |
/freebsd/tests/sys/acl/ |
H A D | acl-api-test.c | 138 acl_permset_t perms; in ATF_TC_BODY() local 152 ATF_REQUIRE_EQ(0, acl_get_permset(entry, &perms)); in ATF_TC_BODY() 153 ATF_REQUIRE_EQ(0, acl_clear_perms(perms)); in ATF_TC_BODY() 154 ATF_REQUIRE_EQ(0, acl_add_perm(perms, ACL_READ)); in ATF_TC_BODY() 172 ATF_REQUIRE_EQ(0, acl_get_permset(entry, &perms)); in ATF_TC_BODY() 173 ATF_REQUIRE_EQ(0, acl_clear_perms(perms)); in ATF_TC_BODY()
|
/freebsd/sys/contrib/openzfs/module/zcommon/ |
H A D | zfs_deleg.c | 157 nvlist_t *perms; in zfs_deleg_verify_nvlist() local 171 error = nvlist_lookup_nvlist(nvp, nvpair_name(who), &perms); in zfs_deleg_verify_nvlist() 178 perm_name = nvlist_next_nvpair(perms, NULL); in zfs_deleg_verify_nvlist() 187 } while ((perm_name = nvlist_next_nvpair(perms, perm_name)) in zfs_deleg_verify_nvlist()
|
/freebsd/contrib/atf/atf-c/detail/ |
H A D | fs_test.c | 498 #define perms(ur, uw, ux, gr, gw, gx, othr, othw, othx) \ in ATF_TC_BODY() macro 514 perms(false, false, false, false, false, false, false, false, false); in ATF_TC_BODY() 517 perms(false, false, false, false, false, false, false, false, true); in ATF_TC_BODY() 520 perms(false, false, false, false, false, true, false, false, false); in ATF_TC_BODY() 523 perms(false, false, true, false, false, false, false, false, false); in ATF_TC_BODY() 526 perms(false, false, false, false, false, false, false, true, false); in ATF_TC_BODY() 529 perms(false, false, false, false, true, false, false, false, false); in ATF_TC_BODY() 532 perms(false, true, false, false, false, false, false, false, false); in ATF_TC_BODY() 535 perms(false, false, false, false, false, false, true, false, false); in ATF_TC_BODY() 538 perms(false, false, false, true, false, false, false, false, false); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/llvm-project/libcxx/src/filesystem/ |
H A D | posix_compat.h | 376 inline int fchmod_handle(HANDLE h, int perms) { in realpath() 382 if ((perms & 0222) == 0) 389 inline int fchmodat(int /*fd*/, const wchar_t* path, int perms, int flag) { in fchmod_handle() 401 return fchmod_handle(h, perms); in fchmodat() 407 if ((perms & 0222) == 0) in fchmodat() 415 inline int fchmod(int fd, int perms) { in fchmodat() 417 return fchmod_handle(h, perms); in fchmodat() 384 fchmod_handle(HANDLE h,int perms) fchmod_handle() argument 398 fchmodat(int,const wchar_t * path,int perms,int flag) fchmodat() argument 425 fchmod(int fd,int perms) fchmod() argument
|