| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/ |
| H A D | delegate_common.kshlib | 89 typeset user 134 typeset user 160 typeset user=$1 191 typeset user=$1 267 typeset user=$1 330 typeset user=$1 358 typeset user=$1 430 typeset user=$1 436 user_run $user zfs set "$user:ts=$stamp" $dtst 1648 user_run $user zfs allow $user allow $dtst && return 1 [all …]
|
| /freebsd-14.2/tests/sys/cddl/zfs/tests/acl/cifs/ |
| H A D | cifs_attr_003_pos.ksh | 218 typeset user=$2 239 typeset user=$2 253 typeset user=$2 407 A+user:$user:${ace_dir}:allow $object 410 A+user:$user:${ace_file}:allow $object 457 A+user:$user:${ace_dir}:allow $object 460 A+user:$user:${ace_file}:allow $object 500 A+user:$user:${ace_dir}:allow $object 503 A+user:$user:${ace_file}:allow $object 543 A+user:$user:${ace_dir}:allow $object [all …]
|
| H A D | cifs_attr_001_pos.ksh | 88 typeset user=$3 95 if [[ -n $user ]]; then 117 typeset user=$3 124 if [[ -n $user ]]; then 143 typeset user=$1 160 log_must chmod A+user:$user:write_attributes:deny \ 164 log_must chmod A+user:$user:write_attributes:allow $object 177 typeset user=$1 201 typeset user=$4 213 if [[ -z $user || $user == "root" || \ [all …]
|
| H A D | cifs_attr_002_pos.ksh | 91 typeset user=$3 105 if [[ -n $user ]]; then 128 typeset user=$3 142 if [[ -n $user ]]; then 162 typeset user=$1 179 typeset user=$1 181 if [[ -z $user ]]; then 201 typeset user=$4 211 if [[ -z $user || $user == "root" ]] || \ 224 elif [[ -z $user || $user == "root" ]] || \ [all …]
|
| /freebsd-14.2/tests/sys/cddl/zfs/tests/delegate/ |
| H A D | delegate_common.kshlib | 88 typeset user 132 typeset user 158 typeset user=$1 167 typeset user=$1 207 typeset user=$1 308 typeset user=$1 390 typeset user=$1 420 typeset user=$1 499 user_run $user $ZFS set "$user:ts=$stamp" $dtst 1688 user_run $user $ZFS allow $user allow $dtst [all …]
|
| /freebsd-14.2/contrib/kyua/utils/ |
| H A D | passwd_test.cpp | 49 const passwd_ns::user user("the-name", 1, 2); in ATF_TEST_CASE_BODY() local 51 ATF_REQUIRE_EQ(1, user.uid); in ATF_TEST_CASE_BODY() 52 ATF_REQUIRE_EQ(2, user.gid); in ATF_TEST_CASE_BODY() 59 const passwd_ns::user user("i-am-root", 0, 10); in ATF_TEST_CASE_BODY() local 67 const passwd_ns::user user("i-am-not-root", 123, 10); in ATF_TEST_CASE_BODY() local 75 const passwd_ns::user user = passwd_ns::current_user(); in ATF_TEST_CASE_BODY() local 87 const passwd_ns::user user = passwd_ns::current_user(); in ATF_TEST_CASE_BODY() local 99 const passwd_ns::user user = passwd_ns::find_user_by_name(pw->pw_name); in ATF_TEST_CASE_BODY() local 123 const passwd_ns::user user = passwd_ns::find_user_by_name("myself1"); in ATF_TEST_CASE_BODY() local 136 const passwd_ns::user user = passwd_ns::find_user_by_uid(::getuid()); in ATF_TEST_CASE_BODY() local [all …]
|
| H A D | passwd.cpp | 56 static std::vector< passwd_ns::user > mock_users; 65 format_user(const passwd_ns::user& user) in format_user() argument 67 return F("name=%s, uid=%s, gid=%s") % user.name % user.uid % user.gid; in format_user() 79 passwd_ns::user::user(const std::string& name_, const unsigned int uid_, in user() function in passwd_ns::user 92 passwd_ns::user::is_root(void) const in is_root() 101 passwd_ns::user 105 const user u = fake_current_user.get(); in current_user() 109 const user u = find_user_by_uid(::getuid()); in current_user() 123 passwd_ns::user 132 return user(pw->pw_name, pw->pw_uid, pw->pw_gid); in find_user_by_name() [all …]
|
| /freebsd-14.2/contrib/wpa/src/ap/ |
| H A D | eap_user_db.c | 32 os_memset(&user->methods, 0, sizeof(user->methods)); in set_user_methods() 86 bin_clear_free(user->password, user->password_len); in get_user_cb() 122 (user->password == NULL || len > user->password_len)) { in get_wildcard_cb() 123 bin_clear_free(user->password, user->password_len); in get_wildcard_cb() 215 user->identity = user->password; in eap_user_sqlite_get() 216 user->identity_len = user->password_len; in eap_user_sqlite_get() 225 return user; in eap_user_sqlite_get() 261 while (user) { in hostapd_get_eap_user() 267 if (user->phase2 == !!phase2 && user->wildcard_prefix && in hostapd_get_eap_user() 279 user = user->next; in hostapd_get_eap_user() [all …]
|
| /freebsd-14.2/contrib/processor-trace/libipt/test/src/ |
| H A D | ptunit-asid.c | 73 user.size = sizeof(user.size); in from_user_small() 89 user.size = sizeof(user) + 4; in from_user_big() 107 user.size = sizeof(user); in from_user() 175 memset(&user, 0xcc, sizeof(user)); in to_user_small() 178 errcode = pt_asid_to_user(&user, &asid, sizeof(user.size)); in to_user_small() 180 ptu_uint_eq(user.size, sizeof(user.size)); in to_user_small() 192 memset(&user, 0xcc, sizeof(user)); in to_user_big() 197 errcode = pt_asid_to_user(&user, &asid, sizeof(user) + 8); in to_user_big() 211 memset(&user, 0xcc, sizeof(user)); in to_user() 216 errcode = pt_asid_to_user(&user, &asid, sizeof(user)); in to_user() [all …]
|
| /freebsd-14.2/usr.sbin/extattr/tests/ |
| H A D | extattr_test.sh | 49 getextattr -qx user myattr foo 61 getextattr user myattr foo 63 getextattr -qx user myattr foo 122 lsextattr user foo 126 getextattr user myattr foo 128 rmextattr user myattr foo 226 getextattr user myattr foo 263 lsextattr user foo bar 282 lsextattr user foo bar 284 lsextattr -f user foo bar [all …]
|
| /freebsd-14.2/crypto/openssh/regress/unittests/misc/ |
| H A D | test_parse.c | 29 char *user, *host, *path; in test_parse() local 33 &user, &host, &path), 0); in test_parse() 34 ASSERT_STRING_EQ(user, "someuser"); in test_parse() 37 free(user); free(host); free(path); in test_parse() 42 &user, &host, &path), 0); in test_parse() 43 ASSERT_STRING_EQ(user, "someuser"); in test_parse() 46 free(user); free(host); free(path); in test_parse() 51 &user, &host, &path), 0); in test_parse() 52 ASSERT_STRING_EQ(user, "someuser"); in test_parse() 60 &user, &host, &path), 0); in test_parse() [all …]
|
| /freebsd-14.2/contrib/bsnmp/lib/ |
| H A D | snmpcrypto.c | 68 if (user->auth_proto == SNMP_AUTH_HMAC_MD5) { in snmp_digest_init() 78 user->auth_proto); in snmp_digest_init() 110 memcpy(extkey, pdu->user.auth_key, keylen); in snmp_pdu_calc_digest() 254 if (passwd == NULL || user == NULL) in snmp_passwd_to_keys() 269 memset(user->auth_key, 0, sizeof(user->auth_key)); in snmp_passwd_to_keys() 307 memset(user->priv_key, 0, sizeof(user->priv_key)); in snmp_get_local_keys() 318 memcpy(authbuf, user->auth_key, keylen); in snmp_get_local_keys() 329 if (user->priv_proto != SNMP_PRIV_NOPRIV) in snmp_get_local_keys() 330 memcpy(user->priv_key, user->auth_key, sizeof(user->priv_key)); in snmp_get_local_keys() 405 user->priv_proto == SNMP_PRIV_NOPRIV) in snmp_passwd_to_keys() [all …]
|
| /freebsd-14.2/crypto/openssh/regress/ |
| H A D | addrmatch.sh | 10 user="$1"; addr="$2"; host="$3"; laddr="$4"; lport="$5" 13 verbose "test $descr for $user $addr $host" 15 -C user=${user},addr=${addr},host=${host},laddr=${laddr},lport=${lport} | \ 37 run_trial user 19.0.0.1 somehost 1.2.3.4 1234 nomatch "no match" 42 run_trial user 19.0.0.1 somehost 1.2.3.4 5678 match4 "localport" 47 run_trial user ::3 somehost ::2 1234 nomatch "IP6 negated" 48 run_trial user ::4 somehost ::2 1234 nomatch "IP6 no match" 49 run_trial user 2000::1 somehost ::2 1234 match2 "IP6 network" 50 run_trial user 2001::1 somehost ::2 1234 nomatch "IP6 network" 51 run_trial user ::5 somehost ::1 1234 match3 "IP6 localaddress" [all …]
|
| /freebsd-14.2/crypto/heimdal/lib/roken/ |
| H A D | get_default_username.c | 46 const char *user; in get_default_username() local 48 user = getenv ("USER"); in get_default_username() 49 if (user == NULL) in get_default_username() 50 user = getenv ("LOGNAME"); in get_default_username() 51 if (user == NULL) in get_default_username() 55 if (user == NULL) { in get_default_username() 57 if (user != NULL) in get_default_username() 58 return user; in get_default_username() 66 if (user != NULL) { in get_default_username() 69 return user; in get_default_username() [all …]
|
| /freebsd-14.2/crypto/heimdal/lib/krb5/ |
| H A D | get_default_principal.c | 44 if(user == NULL) in get_env_user() 46 if(user == NULL) in get_env_user() 48 return user; in get_env_user() 64 const char *user; in _krb5_get_default_principal_local() local 71 user = getlogin(); in _krb5_get_default_principal_local() 72 if(user == NULL) in _krb5_get_default_principal_local() 74 if(user != NULL && strcmp(user, "root") != 0) in _krb5_get_default_principal_local() 81 user = pw->pw_name; in _krb5_get_default_principal_local() 84 if(user == NULL) in _krb5_get_default_principal_local() 85 user = getlogin(); in _krb5_get_default_principal_local() [all …]
|
| H A D | test_alname.c | 39 const char *user, const char *inst, in test_alname() argument 47 ret = krb5_make_principal(context, &p, realm, user, inst, NULL); in test_alname() 104 char *user; in main() local 125 user = argv[0]; in main() 135 test_alname(context, realm, user, NULL, user, 1); in main() 136 test_alname(context, realm, user, "root", "root", 1); in main() 138 test_alname(context, "FOO.BAR.BAZ.KAKA", user, NULL, user, 0); in main() 141 test_alname(context, realm, user, NULL, in main() 143 test_alname(context, realm, user, "root", in main() 146 test_alname(context, "FOO.BAR.BAZ.KAKA", user, NULL, in main() [all …]
|
| /freebsd-14.2/contrib/sendmail/libsm/ |
| H A D | mbdb.c | 156 sm_mbdb_lookup(name, user) in sm_mbdb_lookup() argument 158 SM_MBDB_T *user; 179 sm_mbdb_frompw(user, pw) in sm_mbdb_frompw() argument 180 SM_MBDB_T *user; in sm_mbdb_frompw() 183 SM_REQUIRE(user != NULL); 186 user->mbdb_uid = pw->pw_uid; 229 char *user; 304 mbdb_pw_lookup(name, user) in mbdb_pw_lookup() argument 306 SM_MBDB_T *user; 340 sm_mbdb_frompw(user, pw); [all …]
|
| /freebsd-14.2/tests/sys/acl/ |
| H A D | tools-nfs4.test | 78 > user:0:-----------C--:-------:allow 85 # Test user and group name resolving. 95 > user:root:-----------C--:-------:allow 115 > user:0:-----------C--:-------:allow 265 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow -x everyone@::allow xxx 294 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx 318 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx 342 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx 447 $ setfacl -a0 user:42:rx:allow,user:42:rx:fi:allow,group:42:write_data/delete_child:d:allow ddd 482 $ setfacl -a0 user:42:rx:allow,user:42:rx:fi:allow,group:42:write_data/delete_child:d:allow ddd [all …]
|
| H A D | tools-nfs4-psarc.test | 69 > user:0:-----------C--:-------:allow 73 # Test user and group name resolving. 83 > user:root:-----------C--:-------:allow 98 > user:0:-----------C--:-------:allow 115 > user:0:-----------C--:-------:allow 148 > user:0:-----------C--:-------:allow 228 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow -x everyone@::allow xxx 244 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx 259 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx 276 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx [all …]
|
| /freebsd-14.2/contrib/kyua/utils/process/ |
| H A D | isolation.cpp | 152 const passwd::user& user = unprivileged_user.get(); in isolate_child() local 154 if (user.gid != ::getgid()) { in isolate_child() 155 if (::setgid(user.gid) == -1) in isolate_child() 160 groups[0] = user.gid; in isolate_child() 166 if (user.uid != ::getuid()) { in isolate_child() 167 if (::setuid(user.uid) == -1) in isolate_child() 192 const passwd::user& user = unprivileged_user.get(); in isolate_path() local 195 const bool change_user = user.uid != ::getuid(); in isolate_path() 200 do_chown(file, user.uid, user.gid); in isolate_path() 202 do_chown(file, ::getuid(), user.gid); in isolate_path() [all …]
|
| /freebsd-14.2/lib/libpam/modules/pam_xdg/ |
| H A D | pam_xdg.c | 57 const char *user; in _pam_xdg_open() local 69 rv = pam_get_item(pamh, PAM_USER, (const void **)&user); in _pam_xdg_open() 70 if (rv != PAM_SUCCESS || user == NULL) { in _pam_xdg_open() 74 if ((passwd = getpwnam(user)) == NULL) { in _pam_xdg_open() 95 rt_dir = mkdirat(rt_dir_prefix, user, RUNTIME_DIR_MODE); in _pam_xdg_open() 104 rv = unlinkat(rt_dir_prefix, user, AT_REMOVEDIR); in _pam_xdg_open() 113 rv = fstatat(rt_dir_prefix, user, &sb, 0); in _pam_xdg_open() 213 const char *user; in _pam_xdg_close() local 225 if (rv != PAM_SUCCESS || user == NULL) { in _pam_xdg_close() 229 if ((passwd = getpwnam(user)) == NULL) { in _pam_xdg_close() [all …]
|
| /freebsd-14.2/lib/libpam/modules/pam_login_access/ |
| H A D | pam_login_access.c | 72 const void *rhost, *tty, *user; in pam_sm_acct_mgmt() local 76 pam_err = pam_get_item(pamh, PAM_USER, &user); in pam_sm_acct_mgmt() 80 if (user == NULL) in pam_sm_acct_mgmt() 83 PAM_LOG("Got user: %s", (const char *)user); in pam_sm_acct_mgmt() 105 (const char *)user, (const char *)rhost); in pam_sm_acct_mgmt() 109 (const char *)user, (const char *)rhost); in pam_sm_acct_mgmt() 112 (const char *)user, (const char *)tty); in pam_sm_acct_mgmt() 113 if (login_access(user, tty, &login_access_opts) != 0) in pam_sm_acct_mgmt() 116 (const char *)user, (const char *)tty); in pam_sm_acct_mgmt() 119 (const char *)user); in pam_sm_acct_mgmt() [all …]
|
| /freebsd-14.2/crypto/heimdal/lib/gssapi/mech/ |
| H A D | gss_authorize_localname.c | 43 const struct _gss_name *user) in mech_authorize_localname() argument 58 &user->gn_value, in mech_authorize_localname() 59 &user->gn_type); in mech_authorize_localname() 73 const struct _gss_name *user) in attr_authorize_localname() argument 78 if (!gss_oid_equal(&user->gn_type, GSS_C_NT_USER_NAME)) in attr_authorize_localname() 102 value.length == user->gn_value.length && in attr_authorize_localname() 103 memcmp(value.value, user->gn_value.value, user->gn_value.length) == 0) in attr_authorize_localname() 137 if (HEIM_SLIST_FIRST(&user->gn_mn) != NULL) in gss_authorize_localname() 168 const char *user) in gss_userok() argument 174 userBuf.value = (void *)user; in gss_userok() [all …]
|
| /freebsd-14.2/contrib/pjdfstest/tests/granular/ |
| H A D | 02.t | 26 expect 0 prependacl ${n0} user:65534:read_acl::deny 29 expect 0 prependacl ${n0} user:65534:read_acl::allow 37 expect 0 prependacl ${n0} user:65534:write_acl::allow 38 expect 0 -u 65534 -g 65534 prependacl ${n0} user:65534:read_data::allow 44 expect 0 prependacl ${n0} user:65534:write_acl::allow 64 expect 0 prependacl ${n0} user:65534:write_acl::allow 71 expect 0 prependacl ${n0} user:65534:write_acl::allow 78 expect 0 prependacl ${n0} user:65534:write_acl::allow 84 expect 0 prependacl ${n0} user:65534:write_acl::allow 91 expect 0 prependacl ${n0} user:65534:write_acl::allow [all …]
|
| /freebsd-14.2/usr.sbin/syslogd/tests/ |
| H A D | syslogd_test.sh | 85 syslogd_log -p user.debug -t basic -h "${SYSLOGD_LOCAL_SOCKET}" \ 102 syslogd_log -6 -p user.debug -t basic -h ::1 -P "${SYSLOGD_UDP_PORT}" \ 124 syslogd_log -p user.debug -t reload -h "${SYSLOGD_LOCAL_SOCKET}" \ 133 syslogd_log -p user.debug -t reload -h "${SYSLOGD_LOCAL_SOCKET}" \ 157 syslogd_log -p user.debug -t "prog${i}" -h "${SYSLOGD_LOCAL_SOCKET}" \ 170 syslogd_log -p user.debug -t "prog${i}" -h "${SYSLOGD_LOCAL_SOCKET}" \ 194 syslogd_log -p user.debug -t "host${i}" -H "host${i}" \ 207 syslogd_log -p user.debug -t "host${i}" -H "host${i}" \ 288 syslogd_log -p user.debug -t "pipe" -h "${SYSLOGD_LOCAL_SOCKET}" \ 301 atf_set require.user root [all …]
|