/freebsd/contrib/pjdfstest/tests/open/ |
H A D | 06.t | 24 expect 0 -u 65534 -g 65534 chmod ${n1} 0600 28 expect 0 -u 65534 -g 65534 chmod ${n1} 0060 32 expect 0 -u 65534 -g 65534 chmod ${n1} 0006 37 expect 0 -u 65534 -g 65534 chmod ${n1} 0477 41 expect 0 -u 65534 -g 65534 chmod ${n1} 0747 45 expect 0 -u 65534 -g 65534 chmod ${n1} 0774 50 expect 0 -u 65534 -g 65534 chmod ${n1} 0277 54 expect 0 -u 65534 -g 65534 chmod ${n1} 0727 58 expect 0 -u 65534 -g 65534 chmod ${n1} 0772 63 expect 0 -u 65534 -g 65534 chmod ${n1} 0177 [all …]
|
H A D | 07.t | 22 expect 0 -u 65534 -g 65534 chmod ${n1} 0477 24 expect 0 -u 65534 -g 65534 chmod ${n1} 0747 26 expect 0 -u 65534 -g 65534 chmod ${n1} 0774 29 expect 0 -u 65534 -g 65534 chmod ${n1} 0177 31 expect 0 -u 65534 -g 65534 chmod ${n1} 0717 33 expect 0 -u 65534 -g 65534 chmod ${n1} 0771 36 expect 0 -u 65534 -g 65534 chmod ${n1} 0077 38 expect 0 -u 65534 -g 65534 chmod ${n1} 0707 40 expect 0 -u 65534 -g 65534 chmod ${n1} 0770
|
/freebsd/bin/chmod/tests/ |
H A D | chmod_test.sh | 45 atf_check chmod -h 0777 A/C 47 atf_check chmod -RH 0700 A 49 atf_check chmod -RH 0600 A/C 64 atf_check chmod -h 0777 A/C 66 atf_check chmod -RL 0700 A 68 atf_check chmod -RL 0600 A/C 83 atf_check chmod -h 0777 A/C 85 atf_check chmod -RP 0700 A 87 atf_check chmod -RP 0600 A/C 102 atf_check chmod 0750 foo bar [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/acl/nontrivial/ |
H A D | zfs_acl_chmod_rwacl_001_pos.ksh | 63 log_assert "Verify chmod A[number]{+|-|=} read_acl/write_acl have correct " \ 97 chgusr_exec $user $CHMOD A0+owner@:read_data:allow $node 105 chgusr_exec $user $CHMOD A0- $node 125 $CHMOD A0+owner@:read_acl/write_acl:$acc $node 128 log_must usr_exec $CHMOD A0- $node 143 log_must usr_exec $CHMOD A0+group@:read_acl/write_acl:allow $node 146 log_must usr_exec $CHMOD A0- $node 148 log_must usr_exec $CHMOD A0+group@:read_acl/write_acl:deny $node 151 log_must usr_exec $CHMOD A0- $node 167 $CHMOD A0+everyone@:read_acl/write_acl:$flag $node [all …]
|
H A D | zfs_acl_chmod_001_neg.ksh | 36 # Verify 1) Illegal options to chmod should fail. 42 # 2. Verify all kinds of illegal option will lead to chmod failed. 43 # 3. Verify 'chmod A0-' will fail when try to delete all the ACE. 44 # 4. Verify 'chmod A+' will succeed when the ACE number exceed 1024. 68 log_note "Illegal option to chmod should fail." 70 log_mustnot usr_exec $CHMOD ${A}owner@:read_data:allow $node 71 log_mustnot usr_exec $CHMOD A+ asd owner@:execute:deny $node 76 log_mustnot usr_exec $CHMOD A+$tp:read_data:deny $node 90 log_mustnot $CHMOD A0- $node 92 log_must $CHMOD A0- $node [all …]
|
H A D | zfs_acl_chmod_rwx_004_pos.ksh | 100 log_must usr_exec $CHMOD A+everyone@:$access:$flag $node 101 log_must usr_exec $CHMOD A+user:$ZFS_ACL_OTHER1:$access:$rflag $node 103 log_must usr_exec $CHMOD A0- $node 106 $CHMOD A+group:$ZFS_ACL_OTHER_GROUP:$access:$rflag $node 109 log_must usr_exec $CHMOD A0- $node 110 log_must usr_exec $CHMOD A0- $node 113 $CHMOD A+group:$ZFS_ACL_OTHER_GROUP:$access:$flag $node 114 log_must usr_exec $CHMOD A+user:$ZFS_ACL_OTHER1:$access:$rflag $node 117 log_must usr_exec $CHMOD A0- $node 118 log_must usr_exec $CHMOD A0- $node [all …]
|
H A D | zfs_acl_chmod_rwx_002_pos.ksh | 36 # chmod A{+|-|=} read_data|write_data|execute for owner@ group@ or everyone@ 43 # 4. Separately chmod +|-|= read_data|write_data|execute 58 log_assert "chmod A{+|-|=} read_data|write_data|execute for owner@, group@ " \ 109 # expect bits after 'chmod A0{+|=}'. 143 # Based on the initial node map before chmod and the ace-spec, check if chmod 206 log_must usr_exec $CHMOD $init_mask $node 213 log_must $CHMOD A0+user:$ZFS_ACL_OTHER1:execute:deny \ 216 log_must usr_exec $CHMOD $operator$acl_spec $node 220 # Check "chmod A-" 221 log_must usr_exec $CHMOD A0- $node [all …]
|
H A D | zfs_acl_chmod_rwx_001_pos.ksh | 36 # chmod A{+|-|=} have the correct behaviour to the ACL list. 40 # 2. chmod file or dir with specified options 41 # 3. get ACE after behaviours of chmod 56 log_assert "chmod A{+|-|=} have the correct behaviour to the ACL list." 90 # Invoke chmod A[number]{+|-|=}<acl-specification> file|dir 92 log_must usr_exec $CHMOD "$opt$ace" "$node" 94 log_must usr_exec $CHMOD "$opt" "$node" 105 log_fail "FAIL: $CHMOD $opt$ace $node" 136 log_pass "chmod A{+|-|=} behave to the ACL list passed."
|
H A D | zfs_acl_chmod_inherit_001_pos.ksh | 36 # Verify chmod have correct behaviour to directory and file when setting 42 # 3. Separately chmod basedir with different inherite options. 52 # chmod --> basedir -| 85 log_assert "Verify chmod have correct behaviour to directory and file when " \ 98 # Define the existed files and directories before chmod 102 # Define the files and directories will be created after chmod 174 log_must usr_exec $CHMOD $aclspec $basefile 179 log_must usr_exec $CHMOD $aclspec $basedir 188 log_pass "Verify chmod inherit behaviour passed."
|
H A D | zfs_acl_chmod_compact_001_pos.ksh | 37 # chmod A{+|-|=} could set compact ACL correctly. 42 # 4. Separately chmod +|-|= 59 log_assert "chmod A{+|=} should set compact ACL correctly." 116 # expect compact ACE that could be used by chmod A0{+|=}'. 169 # Check if chmod set the compact ACE correctly. 229 log_must $CHMOD A0+user:$ZFS_ACL_OTHER1:execute:deny \ 232 log_must usr_exec $CHMOD ${operator}${acl_spec} $node 239 # Check "chmod A-" 240 log_must usr_exec $CHMOD A0- $node 245 log_fail "FAIL: 'chmod A-' failed." [all …]
|
/freebsd/contrib/pjdfstest/tests/chmod/ |
H A D | 08.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/08.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="chmod returns EPERM if the named file has its immutable or append-only flag set" 27 expect EPERM chmod ${n0} 0600 31 expect 0 chmod ${n0} 0600 39 expect 0 chmod ${n0} 0600 50 expect 0 chmod ${n0} 0600 55 expect 0 chmod ${n0} 0400 62 expect EPERM chmod ${n0} 0600 66 expect 0 chmod ${n0} 0600 72 expect EPERM chmod ${n0} 0600 [all …]
|
H A D | 11.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/11.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="chmod returns EFTYPE if the effective user ID is not the super-user, the mode includes the st… 27 expect 0 chmod ${n1} 01621 30 expect 0 chmod ${n2} 01700 54 expect 0 -u 65534 -g 65534 chmod ${n1} 01755 57 expect 0 chmod ${n2} 01700 68 expect 0 -u 65534 -g 65534 chmod ${n1} 01644 70 expect 0 -u 65534 -g 65534 chmod ${n2} 01640 74 expect EFTYPE -u 65534 -g 65534 chmod ${n1} 01644 76 expect EFTYPE -u 65534 -g 65534 chmod ${n2} 01644 [all …]
|
H A D | 00.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/00.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="chmod changes permission" 27 expect 0 chmod ${n0} 0111 32 expect 0 chmod ${n1} 0222 57 # successful chmod(2) updates ctime. 63 expect 0 chmod ${n0} 0111 88 # unsuccessful chmod(2) does not update ctime. 94 expect EPERM -u 65534 chmod ${n0} 0111 123 # successful return from chmod(). 127 expect 0 -u 65535 -g 65535 chmod ${n0} 02755 [all …]
|
H A D | 05.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/05.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="chmod returns EACCES when search permission is denied for a component of the path prefix" 26 expect 0 -u 65534 -g 65534 chmod ${n1}/${n2} 0642 28 expect 0 chmod ${n1} 0644 29 expect EACCES -u 65534 -g 65534 chmod ${n1}/${n2} 0620 30 expect 0 chmod ${n1} 0755 31 expect 0 -u 65534 -g 65534 chmod ${n1}/${n2} 0420 34 expect 0 chmod ${n1} 0644 36 expect 0 chmod ${n1} 0755
|
H A D | 07.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/07.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="chmod returns EPERM if the operation would change the ownership, but the effective user ID is… 28 expect 0 -u 65534 -g 65534 chmod ${n1}/${n2} 0642 30 expect EPERM -u 65533 -g 65533 chmod ${n1}/${n2} 0641 33 expect EPERM -u 65534 -g 65534 chmod ${n1}/${n2} 0641 39 expect 0 -u 65534 -g 65534 chmod ${n1}/${n3} 0642 41 expect EPERM -u 65533 -g 65533 chmod ${n1}/${n3} 0641 44 expect EPERM -u 65534 -g 65534 chmod ${n1}/${n3} 0641
|
H A D | 06.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/06.t 211474 2010-08-18 22:06:43Z pjd $ 5 desc="chmod returns ELOOP if too many symbolic links were encountered in translating the pathname" 21 expect ELOOP chmod ${n0} 0644 22 expect ELOOP chmod ${n1} 0644 23 expect ELOOP chmod ${n0}/test 0644 24 expect ELOOP chmod ${n1}/test 0644
|
H A D | 04.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/04.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="chmod returns ENOENT if the named file does not exist" 21 expect ENOENT chmod ${n0}/${n1}/test 0644 22 expect ENOENT chmod ${n0}/${n1} 0644 28 expect ENOENT chmod ${n0}/${n1} 0644
|
/freebsd/contrib/pjdfstest/tests/granular/ |
H A D | 02.t | 43 expect EPERM -u 65534 -g 65534 chmod ${n0} 0777 45 expect 0 -u 65534 -g 65534 chmod ${n0} 0777 63 expect EPERM -u 65534 -g 65534 chmod ${n0} 04777 65 expect EPERM -u 65534 -g 65534 chmod ${n0} 04777 70 expect EPERM -u 65534 -g 65534 chmod ${n0} 02777 72 expect EPERM -u 65534 -g 65534 chmod ${n0} 02777 77 expect EPERM -u 65534 -g 65534 chmod ${n0} 01777 79 expect 0 -u 65534 -g 65534 chmod ${n0} 01777 98 expect 0 chmod ${n0} 01755 105 # is checked in chmod/12.t. [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/acl/trivial/ |
H A D | zfs_acl_chmod_001_pos.ksh | 36 # Verify chmod permission settings on files and directories, as both root 42 # 3. Execute 'chmod' with specified options. 71 log_assert " Verify chmod permission settings on files and directories" 75 # Verify file or directory have correct map after chmod 85 usr_exec $CHMOD ${argv[i]} $node 87 log_note "usr_exec $CHMOD ${argv[i]} $node" 91 usr_exec $CHMOD ${argv[((i + 1))]} $node 93 log_note "usr_exec $CHMOD ${argv[((i + 1))]} $node" 121 log_must $CHMOD A+user:$ZFS_ACL_STAFF2:write_acl:allow $testfile 130 # Grant privileges of write_acl and retest the chmod commands. [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/user_namespace/ |
H A D | user_namespace_001.ksh | 60 CHMOD=$(readlink -f $(command -v chmod)) 64 log_must $CHMOD 0644 $TESTDIR/$i 73 log_mustnot user_ns_exec $CHMOD 02755 $TESTDIR/rroot_rroot 76 log_must user_ns_exec $CHMOD 02755 $TESTDIR/uroot_uroot 79 log_must user_ns_exec $CHMOD 02755 $TESTDIR/uroot_other 82 log_must user_ns_exec $CHMOD 02755 $TESTDIR/uother_uroot 85 log_must user_ns_exec $CHMOD 02755 $TESTDIR/uother_uother 89 log_must $CHMOD 0666 $TESTDIR/rroot_rroot
|
/freebsd/lib/libsys/ |
H A D | chmod.2 | 32 .Nm chmod , 42 .Fn chmod "const char *path" "mode_t mode" 57 .Fn chmod 66 .Fn chmod 73 .Fn chmod 79 .Fn chmod 133 .Fn chmod . 228 .Fn chmod 291 .Fn chmod 327 .Xr chmod 1 , [all …]
|
/freebsd/crypto/heimdal/doc/ |
H A D | Makefile.am | 19 chmod +x hcrypto.dxy.tmp 24 chmod +x hdb.dxy.tmp 29 chmod +x hx509.dxy.tmp 34 chmod +x gssapi.dxy.tmp 39 chmod +x krb5.dxy.tmp 44 chmod +x ntlm.dxy.tmp 49 chmod +x wind.dxy.tmp 57 chmod +x vars.texi.tmp 63 @find $(srcdir)/doxyout -type d ! -perm -200 -exec chmod u+w {} ';' ; \
|
/freebsd/tests/sys/cddl/zfs/tests/acl/cifs/ |
H A D | cifs_attr_003_pos.ksh | 118 $CHMOD S+c${attr} $object 144 $CHMOD S-c${attr} $object 378 verify_expect $expect $CHG_USR_EXEC $user chmod A+$TESTACL $object 379 verify_expect $expect $CHG_USR_EXEC $user chmod A+$TESTACL $object 380 verify_expect $expect $CHG_USR_EXEC $user chmod A0- $object 381 verify_expect $expect $CHG_USR_EXEC $user chmod A0- $object 383 verify_expect $expect $CHG_USR_EXEC $user chmod $TESTMODE $object 403 log_must usr_exec chmod \ 406 log_must usr_exec chmod \ 453 log_must usr_exec chmod \ [all …]
|
H A D | cifs_attr_001_pos.ksh | 93 $RUNWATTR -u $user "$CHMOD S+c${attr} $object" 96 $CHMOD S+c${attr} $object 122 $RUNWATTR -u $user "$CHMOD S-c${attr} $object" 125 $CHMOD S-c${attr} $object 152 log_must chmod A+user:root:write_attributes:deny $object 155 log_must chmod A+owner@:write_attributes:deny $object 157 log_must chmod A+user:$user:write_attributes:deny \ 161 log_must chmod A+user:$user:write_attributes:allow $object 181 log_must chmod A0- $object
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | Makefile.am | 235 chmod +x test_ca.tmp 240 chmod +x test_cert.tmp 245 chmod +x test_chain.tmp 250 chmod +x test_cms.tmp 255 chmod +x test_crypto.tmp 260 chmod +x test_nist.tmp 265 chmod +x test_nist2.tmp 270 chmod +x test_pkcs11.tmp 275 chmod +x test_java_pkcs11.tmp 280 chmod +x test_nist_cert.tmp [all …]
|