| /freebsd-13.1/sys/contrib/ngatm/netnatm/api/ |
| H A D | cc_user.c | 81 user->cc->funcs->send_user(user, user->uarg, op, arg, len); in cc_user_send() 87 user->cc->funcs->respond_user(user, user->uarg, in cc_user_ok() 94 user->cc->funcs->respond_user(user, user->uarg, in cc_user_err() 111 user = CCZALLOC(sizeof(*user)); in cc_user_create() 112 if (user == NULL) in cc_user_create() 115 user->cc = cc; in cc_user_create() 118 strncpy(user->name, name, sizeof(user->name)); in cc_user_create() 119 user->name[sizeof(user->name) - 1] = '\0'; in cc_user_create() 126 return (user); in cc_user_create() 203 cc_user_log(user, "destroy '%s'", user->name); in cc_user_destroy() [all …]
|
| H A D | cc_conn.c | 112 conn->user = NULL; in cc_disconnect_from_user() 125 conn->user = user; in cc_connect_to_user() 684 if (user->queue_max == user->queue_act) { in cc_conn_dispatch() 777 memset(&conn->user->cause[1], 0, sizeof(conn->user->cause[1])); in cc_party_drop_ack_ind() 785 memset(&conn->user->cause[1], 0, sizeof(conn->user->cause[1])); in cc_party_drop_ack_ind() 927 struct ccuser *user = conn->user; in cc_conn_sig_handle() local 946 struct ccuser *user = conn->user; in cc_conn_sig_handle() local 1592 memset(&conn->user->cause[1], 0, sizeof(conn->user->cause[1])); in cc_conn_sig_handle() 1625 memset(&conn->user->cause[1], 0, sizeof(conn->user->cause[1])); in cc_conn_sig_handle() 1665 struct ccuser *user = conn->user; in cc_conn_sig_handle() local [all …]
|
| /freebsd-13.1/tests/sys/cddl/zfs/tests/acl/cifs/ |
| H A D | cifs_attr_003_pos.ksh | 220 typeset user=$2 241 typeset user=$2 255 typeset user=$2 409 A+user:$user:${ace_dir}:allow $object 412 A+user:$user:${ace_file}:allow $object 459 A+user:$user:${ace_dir}:allow $object 462 A+user:$user:${ace_file}:allow $object 502 A+user:$user:${ace_dir}:allow $object 505 A+user:$user:${ace_file}:allow $object 545 A+user:$user:${ace_dir}:allow $object [all …]
|
| H A D | cifs_attr_001_pos.ksh | 90 typeset user=$3 97 if [[ -n $user ]]; then 119 typeset user=$3 126 if [[ -n $user ]]; then 145 typeset user=$1 162 log_must chmod A+user:$user:write_attributes:deny \ 166 log_must chmod A+user:$user:write_attributes:allow $object 179 typeset user=$1 203 typeset user=$4 215 if [[ -z $user || $user == "root" || \ [all …]
|
| H A D | cifs_attr_002_pos.ksh | 93 typeset user=$3 107 if [[ -n $user ]]; then 130 typeset user=$3 144 if [[ -n $user ]]; then 164 typeset user=$1 181 typeset user=$1 183 if [[ -z $user ]]; then 203 typeset user=$4 213 if [[ -z $user || $user == "root" ]] || \ 226 elif [[ -z $user || $user == "root" ]] || \ [all …]
|
| /freebsd-13.1/tests/sys/cddl/zfs/tests/delegate/ |
| H A D | delegate_common.kshlib | 90 typeset user 134 typeset user 160 typeset user=$1 169 typeset user=$1 209 typeset user=$1 310 typeset user=$1 392 typeset user=$1 422 typeset user=$1 501 user_run $user $ZFS set "$user:ts=$stamp" $dtst 1690 user_run $user $ZFS allow $user allow $dtst [all …]
|
| /freebsd-13.1/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 200 typeset user=$1 301 typeset user=$1 377 typeset user=$1 406 typeset user=$1 479 typeset user=$1 485 user_run $user zfs set "$user:ts=$stamp" $dtst 1697 user_run $user zfs allow $user allow $dtst [all …]
|
| /freebsd-13.1/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-13.1/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-13.1/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-13.1/usr.sbin/extattr/tests/ |
| H A D | extattr_test.sh | 50 getextattr -qx user myattr foo 62 getextattr user myattr foo 64 getextattr -qx user myattr foo 123 lsextattr user foo 127 getextattr user myattr foo 129 rmextattr user myattr foo 227 getextattr user myattr foo 264 lsextattr user foo bar 283 lsextattr user foo bar 285 lsextattr -f user foo bar [all …]
|
| /freebsd-13.1/crypto/openssh/regress/unittests/misc/ |
| H A D | test_parse.c | 30 char *user, *host, *path; in test_parse() local 34 &user, &host, &path), 0); in test_parse() 35 ASSERT_STRING_EQ(user, "someuser"); in test_parse() 38 free(user); free(host); free(path); in test_parse() 43 &user, &host, &path), 0); in test_parse() 44 ASSERT_STRING_EQ(user, "someuser"); in test_parse() 47 free(user); free(host); free(path); in test_parse() 52 &user, &host, &path), 0); in test_parse() 53 ASSERT_STRING_EQ(user, "someuser"); in test_parse() 61 &user, &host, &path), 0); in test_parse() [all …]
|
| /freebsd-13.1/contrib/bsnmp/lib/ |
| H A D | snmpcrypto.c | 69 if (user->auth_proto == SNMP_AUTH_HMAC_MD5) { in snmp_digest_init() 79 user->auth_proto); in snmp_digest_init() 111 memcpy(extkey, pdu->user.auth_key, keylen); in snmp_pdu_calc_digest() 255 if (passwd == NULL || user == NULL) in snmp_passwd_to_keys() 270 memset(user->auth_key, 0, sizeof(user->auth_key)); in snmp_passwd_to_keys() 308 memset(user->priv_key, 0, sizeof(user->priv_key)); in snmp_get_local_keys() 319 memcpy(authbuf, user->auth_key, keylen); in snmp_get_local_keys() 330 if (user->priv_proto != SNMP_PRIV_NOPRIV) in snmp_get_local_keys() 331 memcpy(user->priv_key, user->auth_key, sizeof(user->priv_key)); in snmp_get_local_keys() 406 user->priv_proto == SNMP_PRIV_NOPRIV) in snmp_passwd_to_keys() [all …]
|
| /freebsd-13.1/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-13.1/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-13.1/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-13.1/contrib/sendmail/libsm/ |
| H A D | mbdb.c | 165 sm_mbdb_lookup(name, user) in sm_mbdb_lookup() argument 167 SM_MBDB_T *user; 188 sm_mbdb_frompw(user, pw) in sm_mbdb_frompw() argument 189 SM_MBDB_T *user; in sm_mbdb_frompw() 192 SM_REQUIRE(user != NULL); 195 user->mbdb_uid = pw->pw_uid; 238 char *user; 312 mbdb_pw_lookup(name, user) in mbdb_pw_lookup() argument 314 SM_MBDB_T *user; 348 sm_mbdb_frompw(user, pw); [all …]
|
| /freebsd-13.1/tests/sys/acl/ |
| H A D | tools-nfs4.test | 79 > user:0:-----------C--:-------:allow 86 # Test user and group name resolving. 96 > user:root:-----------C--:-------:allow 116 > user:0:-----------C--:-------:allow 266 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow -x everyone@::allow xxx 295 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx 319 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx 343 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx 448 $ setfacl -a0 user:42:rx:allow,user:42:rx:fi:allow,group:42:write_data/delete_child:d:allow ddd 483 $ 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 | 70 > user:0:-----------C--:-------:allow 74 # Test user and group name resolving. 84 > user:root:-----------C--:-------:allow 99 > user:0:-----------C--:-------:allow 116 > user:0:-----------C--:-------:allow 149 > user:0:-----------C--:-------:allow 229 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow -x everyone@::allow xxx 245 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx 260 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx 277 $ setfacl -a0 user:42:r:allow,user:43:w:deny,user:43:w:allow,user:44:x:allow xxx [all …]
|
| /freebsd-13.1/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-13.1/lib/libpam/modules/pam_login_access/ |
| H A D | pam_login_access.c | 74 const void *rhost, *tty, *user; in pam_sm_acct_mgmt() local 78 pam_err = pam_get_item(pamh, PAM_USER, &user); in pam_sm_acct_mgmt() 82 if (user == NULL) in pam_sm_acct_mgmt() 85 PAM_LOG("Got user: %s", (const char *)user); in pam_sm_acct_mgmt() 107 (const char *)user, (const char *)rhost); in pam_sm_acct_mgmt() 111 (const char *)user, (const char *)rhost); in pam_sm_acct_mgmt() 114 (const char *)user, (const char *)tty); in pam_sm_acct_mgmt() 115 if (login_access(user, tty, &login_access_opts) != 0) in pam_sm_acct_mgmt() 118 (const char *)user, (const char *)tty); in pam_sm_acct_mgmt() 121 (const char *)user); in pam_sm_acct_mgmt() [all …]
|
| /freebsd-13.1/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-13.1/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 …]
|