| /freebsd-14.2/tools/regression/security/proc_to_proc/ |
| H A D | scenario.c | 102 { &creds[2], &creds[0], EPERM, EPERM, EPERM, EPERM, 0, EPERM, "8. unpriv1 on priv"}, 103 { &creds[2], &creds[1], EPERM, EPERM, EPERM, EPERM, 0, EPERM, "9. unpriv1 on priv"}, 104 { &creds[3], &creds[0], EPERM, EPERM, EPERM, EPERM, 0, EPERM, "10. unpriv1 on priv"}, 105 { &creds[3], &creds[1], EPERM, EPERM, EPERM, EPERM, 0, EPERM, "11. unpriv1 on priv"}, 112 { &creds[2], &creds[4], EPERM, EPERM, EPERM, EPERM, 0, EPERM, "16. unpriv1 on unpriv2"}, 113 { &creds[2], &creds[5], EPERM, EPERM, EPERM, EPERM, 0, EPERM, "17. unpriv1 on unpriv2"}, 114 { &creds[3], &creds[4], EPERM, EPERM, EPERM, EPERM, 0, EPERM, "18. unpriv1 on unpriv2"}, 115 { &creds[3], &creds[5], EPERM, EPERM, EPERM, EPERM, 0, EPERM, "19. unpriv1 on unpriv2"}, 117 { &creds[2], &creds[6], EPERM, EPERM, EPERM, EPERM, 0, EPERM, "20. unpriv1 on daemon1"}, 119 { &creds[3], &creds[6], EPERM, EPERM, EPERM, EPERM, 0, EPERM, "22. unpriv1 on daemon1"}, [all …]
|
| /freebsd-14.2/tools/regression/priv/ |
| H A D | priv_cred.c | 66 expect("priv_setuid(!asroot, injail)", error, -1, EPERM); in priv_cred_setuid() 68 expect("priv_setuid(!asroot, !injail)", error, -1, EPERM); in priv_cred_setuid() 82 expect("priv_seteuid(!asroot, injail)", error, -1, EPERM); in priv_cred_seteuid() 84 expect("priv_seteuid(!asroot, !injail)", error, -1, EPERM); in priv_cred_seteuid() 98 expect("priv_setgid(!asroot, injail)", error, -1, EPERM); in priv_cred_setgid() 100 expect("priv_setgid(!asroot, !injail)", error, -1, EPERM); in priv_cred_setgid() 114 expect("priv_setegd(!asroot, injail)", error, -1, EPERM); in priv_cred_setegid() 116 expect("priv_setegid(!asroot, !injail)", error, -1, EPERM); in priv_cred_setegid() 133 expect("priv_setgroups(!asroot, injail)", error, -1, EPERM); in priv_cred_setgroups() 149 expect("priv_setreuid(!asroot, injail)", error, -1, EPERM); in priv_cred_setreuid() [all …]
|
| H A D | priv_acct.c | 121 expect("priv_acct_enable(root, jail)", error, -1, EPERM); in priv_acct_enable() 125 expect("priv_acct_enable(!root, jail)", error, -1, EPERM); in priv_acct_enable() 127 expect("priv_acct_enable(!root, !jail)", error, -1, EPERM); in priv_acct_enable() 137 expect("priv_acct_disable(root, jail)", error, -1, EPERM); in priv_acct_disable() 141 expect("priv_acct_disable(!root, jail)", error, -1, EPERM); in priv_acct_disable() 143 expect("priv_acct_disable(!root, !jail)", error, -1, EPERM); in priv_acct_disable() 153 expect("priv_acct_rotate(root, jail)", error, -1, EPERM); in priv_acct_rotate() 157 expect("priv_acct_rotate(!root, jail)", error, -1, EPERM); in priv_acct_rotate() 159 expect("priv_acct_rotate(!root, !jail)", error, -1, EPERM); in priv_acct_rotate() 169 expect("priv_acct_noopdisable(root, jail)", error, -1, EPERM); in priv_acct_noopdisable() [all …]
|
| H A D | priv_vfs_chflags.c | 117 error, -1, EPERM); in priv_vfs_chflags_froot_uflags() 120 error, -1, EPERM); in priv_vfs_chflags_froot_uflags() 165 error, -1, EPERM); in priv_vfs_chflags_fother_uflags() 168 error, -1, EPERM); in priv_vfs_chflags_fother_uflags() 183 error, -1, EPERM); in priv_vfs_chflags_froot_sflags() 189 error, -1, EPERM); in priv_vfs_chflags_froot_sflags() 192 error, -1, EPERM); in priv_vfs_chflags_froot_sflags() 207 error, -1, EPERM); in priv_vfs_chflags_fowner_sflags() 213 error, -1, EPERM); in priv_vfs_chflags_fowner_sflags() 216 error, -1, EPERM); in priv_vfs_chflags_fowner_sflags() [all …]
|
| H A D | priv_sched_rtprio.c | 136 error, -1, EPERM); in priv_sched_rtprio_curproc_idle() 142 error, -1, EPERM); in priv_sched_rtprio_curproc_idle() 145 error, -1, EPERM); in priv_sched_rtprio_curproc_idle() 159 error, -1, EPERM); in priv_sched_rtprio_curproc_realtime() 165 error, -1, EPERM); in priv_sched_rtprio_curproc_realtime() 168 error, -1, EPERM); in priv_sched_rtprio_curproc_realtime() 205 error, -1, EPERM); in priv_sched_rtprio_myproc_idle() 211 error, -1, EPERM); in priv_sched_rtprio_myproc_idle() 214 error, -1, EPERM); in priv_sched_rtprio_myproc_idle() 228 error, -1, EPERM); in priv_sched_rtprio_myproc_realtime() [all …]
|
| H A D | priv_sysctl_write.c | 92 EPERM); in priv_sysctl_write() 97 EPERM); in priv_sysctl_write() 100 EPERM); in priv_sysctl_write() 116 EPERM); in priv_sysctl_writejail() 119 EPERM); in priv_sysctl_writejail()
|
| H A D | priv_vfs_generation.c | 94 errno = EPERM; in priv_vfs_generation() 99 EPERM); in priv_vfs_generation() 104 EPERM); in priv_vfs_generation() 107 EPERM); in priv_vfs_generation()
|
| H A D | priv_vfs_chmod.c | 92 EPERM); in priv_vfs_chmod_froot() 95 EPERM); in priv_vfs_chmod_froot() 130 EPERM); in priv_vfs_chmod_fother() 133 EPERM); in priv_vfs_chmod_fother()
|
| /freebsd-14.2/contrib/pjdfstest/tests/chown/ |
| H A D | 07.t | 25 expect EPERM -u 65534 -g 65534 chown ${n1}/${n2} 65533 65533 26 expect EPERM -u 65533 -g 65533 chown ${n1}/${n2} 65534 65534 27 expect EPERM -u 65533 -g 65533 chown ${n1}/${n2} 65533 65533 28 expect EPERM -u 65534 -g 65534 -- chown ${n1}/${n2} -1 65533 30 expect EPERM -u 65534 -g 65534 chown ${n1}/${n3} 65533 65533 31 expect EPERM -u 65533 -g 65533 chown ${n1}/${n3} 65534 65534 32 expect EPERM -u 65533 -g 65533 chown ${n1}/${n3} 65533 65533 33 expect EPERM -u 65534 -g 65534 -- chown ${n1}/${n3} -1 65533 42 expect EPERM -u 65534 -g 65534 lchown ${n1}/${n2} 65533 65533 43 expect EPERM -u 65533 -g 65533 lchown ${n1}/${n2} 65534 65534 [all …]
|
| /freebsd-14.2/contrib/pjdfstest/tests/open/ |
| H A D | 11.t | 29 expect EPERM open ${n0} O_WRONLY 30 expect EPERM open ${n0} O_RDWR 32 expect EPERM open ${n0} O_RDONLY,O_TRUNC 34 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC 36 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC 38 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC 48 expect EPERM open ${n0} O_WRONLY 49 expect EPERM open ${n0} O_RDWR 50 expect EPERM open ${n0} O_RDONLY,O_TRUNC 51 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC [all …]
|
| H A D | 10.t | 27 expect EPERM open ${n0} O_WRONLY 28 expect EPERM open ${n0} O_RDWR 29 expect EPERM open ${n0} O_RDONLY,O_TRUNC 45 expect EPERM open ${n0} O_WRONLY 46 expect EPERM open ${n0} O_RDWR 47 expect EPERM open ${n0} O_RDONLY,O_TRUNC
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | policy.c | 90 return (priv_policy(cr, CAP_SYS_ADMIN, EPERM)); in secpolicy_nfs() 99 return (priv_policy(cr, CAP_SYS_ADMIN, EPERM)); in secpolicy_sys_config() 132 return (EPERM); in secpolicy_vnode_any_access() 141 return (EPERM); in secpolicy_vnode_any_access() 155 return (EPERM); in secpolicy_vnode_chown() 158 return (priv_policy_user(cr, CAP_FOWNER, EPERM)); in secpolicy_vnode_chown() 167 return (priv_policy(cr, CAP_SETGID, EPERM)); in secpolicy_vnode_create_gid() 177 return (priv_policy(cr, CAP_FOWNER, EPERM)); in secpolicy_vnode_remove() 192 return (EPERM); in secpolicy_vnode_setdac() 223 return (EPERM); in secpolicy_vnode_setids_setgids() [all …]
|
| /freebsd-14.2/contrib/pjdfstest/tests/chflags/ |
| H A D | 11.t | 25 expect EPERM -u 65534 -g 65534 chflags ${n1} SF_SNAPSHOT 27 expect EPERM chflags ${n1} SF_SNAPSHOT 30 expect EPERM -u 65534 -g 65534 chflags ${n1} SF_SNAPSHOT 32 expect EPERM chflags ${n1} SF_SNAPSHOT 42 expect EPERM -u 65534 -g 65534 lchflags ${n1} SF_SNAPSHOT 44 expect EPERM lchflags ${n1} SF_SNAPSHOT 47 expect EPERM -u 65534 -g 65534 lchflags ${n1} SF_SNAPSHOT 49 expect EPERM lchflags ${n1} SF_SNAPSHOT
|
| H A D | 09.t | 31 jexpect 1 `pwd` EPERM chflags ${n1} UF_NODUMP 33 jexpect 1 `pwd` EPERM -u 65533 -g 65533 chflags ${n1} UF_NODUMP 35 jexpect 1 `pwd` EPERM -u 65534 -g 65534 chflags ${n1} UF_NODUMP 50 jexpect 1 `pwd` EPERM lchflags ${n1} UF_NODUMP 52 jexpect 1 `pwd` EPERM -u 65533 -g 65533 lchflags ${n1} UF_NODUMP 54 jexpect 1 `pwd` EPERM -u 65534 -g 65534 lchflags ${n1} UF_NODUMP
|
| H A D | 07.t | 25 expect EPERM -u 65534 -g 65534 chflags ${n1} UF_NODUMP 28 expect EPERM -u 65533 -g 65533 chflags ${n1} UF_NODUMP 38 expect EPERM -u 65534 -g 65534 lchflags ${n1} UF_NODUMP 41 expect EPERM -u 65533 -g 65533 lchflags ${n1} UF_NODUMP
|
| H A D | 10.t | 27 expect EPERM -u 65533 -g 65533 chflags ${n1} ${flag} 29 expect EPERM -u 65534 -g 65534 chflags ${n1} ${flag} 42 expect EPERM -u 65533 -g 65533 lchflags ${n1} ${flag} 44 expect EPERM -u 65534 -g 65534 lchflags ${n1} ${flag}
|
| H A D | 08.t | 28 expect EPERM -u 65533 -g 65533 chflags ${n1} UF_NODUMP 30 expect EPERM -u 65534 -g 65534 chflags ${n1} UF_NODUMP 45 expect EPERM -u 65533 -g 65533 lchflags ${n1} UF_NODUMP 47 expect EPERM -u 65534 -g 65534 lchflags ${n1} UF_NODUMP
|
| /freebsd-14.2/contrib/pjdfstest/tests/utimensat/ |
| H A D | 07.t | 29 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_OMIT $DATE2 0 0 30 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 0 UTIME_OMIT 0 31 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0 35 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_OMIT $DATE2 0 0 36 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 0 UTIME_OMIT 0 37 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0
|
| /freebsd-14.2/contrib/pjdfstest/tests/unlink/ |
| H A D | 09.t | 27 expect EPERM unlink ${n0} 33 expect EPERM unlink ${n0} 40 expect EPERM unlink ${n0} 50 expect EPERM unlink ${n0} 56 expect EPERM unlink ${n0} 62 expect EPERM unlink ${n0}
|
| /freebsd-14.2/contrib/pjdfstest/tests/rmdir/ |
| H A D | 09.t | 27 expect EPERM rmdir ${n0} 33 expect EPERM rmdir ${n0} 40 expect EPERM rmdir ${n0} 50 expect EPERM rmdir ${n0} 56 expect EPERM rmdir ${n0} 62 expect EPERM rmdir ${n0}
|
| /freebsd-14.2/contrib/pjdfstest/tests/chmod/ |
| H A D | 08.t | 27 expect EPERM chmod ${n0} 0600 28 supported lchmod && expect EPERM lchmod ${n0} 0600 62 expect EPERM chmod ${n0} 0600 63 supported lchmod && expect EPERM lchmod ${n0} 0600 72 expect EPERM chmod ${n0} 0600 73 supported lchmod && expect EPERM lchmod ${n0} 0600 91 expect EPERM chmod ${n0} 0600 92 supported lchmod && expect EPERM lchmod ${n0} 0600
|
| H A D | 07.t | 30 expect EPERM -u 65533 -g 65533 chmod ${n1}/${n2} 0641 33 expect EPERM -u 65534 -g 65534 chmod ${n1}/${n2} 0641 41 expect EPERM -u 65533 -g 65533 chmod ${n1}/${n3} 0641 44 expect EPERM -u 65534 -g 65534 chmod ${n1}/${n3} 0641 53 expect EPERM -u 65533 -g 65533 lchmod ${n1}/${n2} 0641 56 expect EPERM -u 65534 -g 65534 lchmod ${n1}/${n2} 0641
|
| /freebsd-14.2/tests/sys/posixshm/ |
| H A D | memfd_test.c | 87 ATF_REQUIRE(errno == EPERM); in ATF_TC_BODY() 114 ATF_REQUIRE(errno == EPERM); in ATF_TC_BODY() 194 ATF_REQUIRE(memfd_truncate_test(4, 8, F_SEAL_GROW) == EPERM); in ATF_TC_BODY() 195 ATF_REQUIRE(memfd_truncate_test(8, 4, F_SEAL_SHRINK) == EPERM); in ATF_TC_BODY() 200 EPERM); in ATF_TC_BODY() 202 EPERM); in ATF_TC_BODY() 243 ATF_REQUIRE(errno == EPERM); in ATF_TC_BODY() 262 ATF_REQUIRE_MSG(errno == EPERM, in ATF_TC_BODY() 275 ATF_REQUIRE_MSG(errno == EPERM, in ATF_TC_BODY()
|
| /freebsd-14.2/contrib/pjdfstest/tests/granular/ |
| H A D | 02.t | 36 expect EPERM -u 65534 -g 65534 prependacl ${n0} user:65534:read_data::allow 43 expect EPERM -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
|
| H A D | 04.t | 24 expect EPERM -u 65534 -g 65532,65531 chown ${n0} -1 65532 27 expect EPERM -u 65534 -g 65532,65531 chown ${n0} -1 65530 36 expect EPERM -u 65534 -g 65532,65531 chown ${n0} 65534 65531 39 expect EPERM -u 65534 -g 65532,65531 chown ${n0} 65530 65531
|