Searched defs:uid (Results 1 - 25 of 371) sorted by relevance

1234567891011>>

/freebsd-head/crypto/openssh/
H A Dplatform-misc.c22 * return 1 if the specified uid is a uid that may own a system directory
26 platform_sys_dir_uid(uid_t uid) argument
28 if (uid == 0)
31 if (uid == PLATFORM_SYS_DIR_UID)
H A Dsftp-common.h38 u_int32_t uid; member in struct:Attrib
/freebsd-head/crypto/heimdal/appl/login/
H A Dosfc2.c38 do_osfc2_magic(uid_t uid) argument
49 epw = getespwuid(uid);
52 "getespwuid failed for %d", uid);
65 "attempted login by %s (has no uid)", epw->ufld->fd_name);
/freebsd-head/crypto/heimdal/lib/roken/
H A Dget_default_username.c63 uid_t uid = getuid (); local
68 if (pwd != NULL && pwd->pw_uid == uid)
71 pwd = k_getpwuid (uid);
H A Dk_getpwuid.c42 k_getpwuid (uid_t uid) argument
46 p = getpwuid (uid);
/freebsd-head/contrib/llvm-project/lldb/source/Utility/
H A DUserID.cpp17 Stream &lldb_private::operator<<(Stream &strm, const UserID &uid) { argument
18 strm.Printf("{0x%8.8" PRIx64 "}", uid.GetID());
/freebsd-head/usr.bin/mail/
H A Dgetname.c47 * Search the passwd file for a uid. Return name on success, NULL on failure.
50 getname(uid_t uid) argument
54 if ((pw = getpwuid(uid)) == NULL)
H A Dv7.local.c88 uid_t uid; local
94 if ((np = getname(uid = getuid())) != NULL)
96 printf("Cannot associate a name with uid %u\n", (unsigned)uid);
/freebsd-head/contrib/llvm-project/lldb/source/Symbol/
H A DClangASTMetadata.cpp15 lldb::user_id_t uid = GetUserID(); local
17 if (uid != LLDB_INVALID_UID) {
18 s->Printf("uid=0x%" PRIx64, uid);
/freebsd-head/lib/libutil/
H A D_secure_path.c46 _secure_path(const char *path, uid_t uid, gid_t gid) argument
62 else if ((int)uid != -1 && sb.st_uid != uid && sb.st_uid != 0) {
63 if (uid == 0)
66 msg = "%s: %s is not owned by uid %d";
72 syslog(LOG_ERR, msg, "_secure_path", path, uid);
/freebsd-head/contrib/kyua/utils/
H A Dpasswd.hpp51 unsigned int uid; member in class:utils::passwd::user
/freebsd-head/libexec/ulog-helper/
H A Dulog-helper.c56 uid_t uid; local
62 * return an arbitrary username corresponding to this uid.
64 uid = getuid();
66 pw->pw_uid == uid)
68 if ((pw = getpwuid(uid)) != NULL)
/freebsd-head/usr.bin/at/
H A Dperm.c89 uid_t uid = geteuid(); local
92 if (uid==0)
95 if ((pentry = getpwuid(uid)) == NULL)
/freebsd-head/usr.sbin/pw/
H A Drm_r.c44 rm_r(int rootfd, const char *path, uid_t uid) argument
67 rm_r(dirfd, e->d_name, uid);
68 else if (S_ISLNK(st.st_mode) || st.st_uid == uid)
76 else if (st.st_uid == uid)
/freebsd-head/contrib/libc-pwcache/
H A Dpwcache.h52 #define UID_SZ 317 /* size of uid to user_name cache */
53 #define UNM_SZ 317 /* size of user_name to uid cache */
60 * Node structures used in the user, group, uid, and gid caches.
65 char name[UNMLEN]; /* uid name */
66 uid_t uid; /* cached uid */ member in struct:uidc
/freebsd-head/crypto/heimdal/kcm/
H A Dacl.c114 if (kcm_is_same_session(client, ccache->uid, ccache->session)) {
121 if (client->uid == ccache->uid) {
158 if (ccache->uid != client->uid)
177 uid_t uid,
186 if (ccache->uid != client->uid)
194 ccache->uid = uid;
174 kcm_chown(krb5_context context, kcm_client *client, kcm_ccache ccache, uid_t uid, gid_t gid) argument
[all...]
/freebsd-head/crypto/heimdal/lib/krb5/
H A Dget_default_principal.c65 uid_t uid; local
69 uid = getuid();
70 if(uid == 0) {
79 struct passwd *pw = getpwuid(uid);
/freebsd-head/contrib/netbsd-tests/lib/libc/sys/
H A Dt_setuid.c65 uid_t uid = getuid(); local
67 ATF_REQUIRE(setuid(uid) == 0);
69 ATF_REQUIRE(getuid() == uid);
70 ATF_REQUIRE(geteuid() == uid);
85 uid_t uid; local
99 uid = getuid();
101 if (uid != pw->pw_uid)
/freebsd-head/contrib/libarchive/libarchive/test/
H A Dtest_read_format_lha.c144 int uid, gid; local
147 uid = gid = 1001;
149 uid = gid = 0;
166 assertEqualInt(uid, archive_entry_uid(ae));
180 assertEqualInt(uid, archive_entry_uid(ae));
196 assertEqualInt(uid, archive_entry_uid(ae));
208 assertEqualInt(uid, archive_entry_uid(ae));
220 assertEqualInt(uid, archive_entry_uid(ae));
236 assertEqualInt(uid, archive_entry_uid(ae));
/freebsd-head/contrib/netbsd-tests/include/
H A Dt_paths.c126 uid_t uid; local
135 uid = getuid();
162 "error %d", (uint32_t)uid,
/freebsd-head/contrib/netbsd-tests/fs/umapfs/
H A Dt_basic.c43 xchown(const char *path, uid_t uid, gid_t gid) argument
46 if (rump_sys_chown(path, uid, gid) == -1)
51 testuidgid(const char *path, uid_t uid, gid_t gid) argument
57 if (uid != (uid_t)-1) {
58 if (sb.st_uid != uid)
59 atf_tc_fail("%s: expected uid %d, got %d",
60 path, uid, sb.st_uid);
92 * Map td1 uid 555 to td2 uid 777 (yes, IMHO the umapfs
/freebsd-head/bin/pax/
H A Dcache.h52 #define UID_SZ 317 /* size of user_name/uid cache */
53 #define UNM_SZ 317 /* size of user_name/uid cache */
60 * Node structures used in the user, group, uid, and gid caches.
65 char name[UNMLEN]; /* uid name */
66 uid_t uid; /* cached uid */ member in struct:uidc
/freebsd-head/lib/libc/rpc/
H A Dnetname.c86 uid_t uid; local
88 uid = geteuid();
89 if (uid == 0) {
92 return (user2netname(name, uid, (char *) NULL));
101 user2netname(char netname[MAXNETNAMELEN + 1], const uid_t uid, const char *domain) argument
114 (void) sprintf(netname, "%s.%ld@%s", OPSYS, (u_long)uid, domain);
/freebsd-head/usr.bin/login/
H A Dlogin_audit.c69 uid_t uid = pwd->pw_uid; local
88 auinfo.ai_auid = uid;
98 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid, gid, pid,
121 uid_t uid; local
147 uid = pwd->pw_uid;
149 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid,
177 uid_t uid = pwd->pw_uid; local
195 if ((tok = au_to_subject32(uid, geteui
[all...]
/freebsd-head/lib/libpam/modules/pam_self/
H A Dpam_self.c63 uid_t uid; local
71 uid = getuid();
72 if (uid == 0 && !openpam_get_option(pamh, OPT_ALLOW_ROOT))
75 if (uid == (uid_t)pwd->pw_uid)

Completed in 108 milliseconds

1234567891011>>