Searched defs:gid (Results 1 - 25 of 309) sorted by relevance

1234567891011>>

/freebsd-head/lib/libutil/
H A D_secure_path.c46 _secure_path(const char *path, uid_t uid, gid_t gid) argument
67 } else if ((int)gid != -1 && sb.st_gid != gid && (sb.st_mode & S_IWGRP))
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dbsd-getpeereid.c28 getpeereid(int s, uid_t *euid, gid_t *gid) argument
36 *gid = cred.gid;
47 getpeereid(int s, uid_t *euid, gid_t *gid) argument
55 if ((*gid = ucred_getrgid(ucred)) == -1)
64 getpeereid(int s, uid_t *euid, gid_t *gid) argument
67 *gid = getgid();
H A Dpwcache.c83 group_from_gid(gid_t gid, int nogroup) argument
86 gid_t gid; member in struct:ncache
94 cp = c_gid + (gid & MASK);
95 if (cp->gid != gid || cp->name == NULL) {
102 if ((gr = getgrgid(gid)) == NULL) {
105 (void)snprintf(nbuf, sizeof(nbuf), "%u", gid);
107 cp->gid = gid;
/freebsd-head/contrib/kyua/utils/
H A Dpasswd.hpp54 unsigned int gid; member in class:utils::passwd::user
/freebsd-head/contrib/atf/atf-c/detail/
H A Duser.c46 atf_user_is_member_of_group(gid_t gid) argument
60 if (groups[i] == gid)
/freebsd-head/crypto/openssh/
H A Dsftp-common.h39 u_int32_t gid; member in struct:Attrib
/freebsd-head/contrib/libc-pwcache/
H A Dpwcache.h54 #define GID_SZ 251 /* size of gid to group_name cache */
55 #define GNM_SZ 251 /* size of group_name to gid cache */
60 * Node structures used in the user, group, uid, and gid caches.
71 char name[GNMLEN]; /* gid name */
72 gid_t gid; /* cached gid */ member in struct:gidc
/freebsd-head/crypto/heimdal/kcm/
H A Dacl.c128 if (client->gid == ccache->gid) {
161 if (ccache->gid != client->gid)
178 gid_t gid)
189 if (ccache->gid != client->gid)
195 ccache->gid = gid;
174 kcm_chown(krb5_context context, kcm_client *client, kcm_ccache ccache, uid_t uid, gid_t gid) argument
H A Dclient.c121 ccache->gid != client->gid) && !CLIENT_IS_ROOT(client))
137 ccache->gid = client->gid;
160 * default gid.
170 gid_t gid = pwd->pw_gid; local
171 kcm_chown(context, client, ccache, uid, gid);
/freebsd-head/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getgroups.c76 gid_t gid = getgid(); local
87 if (gidset[i] == gid)
/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;
167 assertEqualInt(gid, archive_entry_gid(ae));
181 assertEqualInt(gid, archive_entry_gid(ae));
197 assertEqualInt(gid, archive_entry_gid(ae));
209 assertEqualInt(gid, archive_entry_gid(ae));
221 assertEqualInt(gid, archive_entry_gid(ae));
237 assertEqualInt(gid, archive_entry_gid(ae));
H A Dtest_write_disk_perms.c41 * * An "alt gid" that this user can create files with
42 * * An "invalid gid" that this user is not permitted to create
52 gid_t gid = 0; local
64 failure("Couldn't create a file for gid testing.");
73 /* This loop stops when we wrap the gid or examine 10,000 gids. */
74 for (gid = 1, n = 1; gid == n && n < 10000 ; n++, gid++) {
75 if (fchown(fd, uid, gid) != 0) {
76 _invalid_gid = gid;
[all...]
H A Dtest_write_format_mtree_classic.c37 gid_t gid; member in struct:__anon49
58 "/set type=file uid=1001 gid=1001 mode=644\n"
70 " config time=1232266273.0 gid=1003 uid=1003 size=8\n"
83 " mtree nlink=2 time=1232266273.0 gid=1003 uid=1003 size=8\n"
93 "/set type=dir uid=1001 gid=1001 mode=755\n"
138 archive_entry_set_gid(ae, entries[i].gid);
139 assertEqualInt(entries[i].gid, archive_entry_gid(ae));
174 assertEqualInt(entries[i].gid, archive_entry_gid(ae));
H A Dtest_write_format_mtree_classic_indent.c37 gid_t gid; member in struct:__anon50
58 "/set type=file uid=1001 gid=1001 mode=644\n"
70 " config time=1232266273.0 gid=1003 uid=1003 size=8\n"
83 " mtree nlink=2 time=1232266273.0 gid=1003 uid=1003 size=8\n"
93 "/set type=dir uid=1001 gid=1001 mode=755\n"
140 archive_entry_set_gid(ae, entries[i].gid);
141 assertEqualInt(entries[i].gid, archive_entry_gid(ae));
176 assertEqualInt(entries[i].gid, archive_entry_gid(ae));
/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
62 if (gid != (gid_t)-1) {
63 if (sb.st_gid != gid)
64 atf_tc_fail("%s: expected gid %d, got %d",
65 path, gid, sb.st_gid);
/freebsd-head/bin/pax/
H A Dcache.h54 #define GID_SZ 251 /* size of gid cache */
60 * Node structures used in the user, group, uid, and gid caches.
71 char name[GNMLEN]; /* gid name */
72 gid_t gid; /* cached gid */ member in struct:gidc
/freebsd-head/usr.bin/login/
H A Dlogin_audit.c70 gid_t gid = pwd->pw_gid; local
98 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid, gid, pid,
122 gid_t gid; local
148 gid = pwd->pw_gid;
150 gid, pid, pid, &tid)) == NULL)
178 gid_t gid = pwd->pw_gid; local
195 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid, gid, pid,
H A Dlogin_fbtab.c18 void login_fbtab(tty, uid, gid)
21 gid_t gid;
45 and gid arguments.
83 login_fbtab(char *tty, uid_t uid, gid_t gid) argument
113 login_protect(table, cp, prot, uid, gid);
123 login_protect(const char *table, char *pattern, int mask, uid_t uid, gid_t gid) argument
138 if (chown(path, uid, gid) && errno != ENOENT)
/freebsd-head/contrib/ofed/libibverbs/examples/
H A Dpingpong.c57 void wire_gid_to_gid(const char *wgid, union ibv_gid *gid) argument
69 memcpy(gid, tmp_gid, sizeof(*gid));
72 void gid_to_wire_gid(const union ibv_gid *gid, char wgid[]) argument
77 memcpy(tmp_gid, gid, sizeof(tmp_gid));
/freebsd-head/contrib/subversion/subversion/libsvn_subr/
H A Duser.c40 apr_gid_t gid; local
42 if (apr_uid_current(&uid, &gid, pool) == APR_SUCCESS &&
/freebsd-head/tests/sys/fs/fusefs/
H A Dallow_other.cc108 gid_t gid; local
110 get_unprivileged_id(&uid, &gid);
115 in.header.gid == gid);
/freebsd-head/contrib/llvm-project/lldb/include/lldb/Utility/
H A DUserIDResolver.h30 llvm::Optional<llvm::StringRef> GetGroupName(id_t gid) { argument
31 return Get(gid, m_gid_cache, &UserIDResolver::DoGetGroupName);
40 virtual llvm::Optional<std::string> DoGetGroupName(id_t gid) = 0;
/freebsd-head/contrib/opie/
H A Dpermsfile.c81 static VOIDRET doaline FUNCTION((line, name, ttyn, uid, gid), char *line AND char *name AND char *ttyn AND uid_t uid AND gid_t gid) argument
137 syslog(LOG_DEBUG, "setting %s to %d/%d %o", *globlist, uid, gid, applies);
139 if ((chown(*globlist, uid, gid) < 0) && (errno != ENOENT))
147 VOIDRET permsfile FUNCTION((name, ttyn, uid, gid), char *name AND char *ttyn AND uid_t uid AND gid_t gid) argument
163 doaline(buf, name, ttyn, uid, gid);
/freebsd-head/contrib/sendmail/libsm/
H A Dt-sem.c131 drop_priv(uid, gid)
133 gid_t gid;
137 r = setgid(gid);
158 semtest(owner, uid, gid)
161 gid_t gid;
168 r = drop_priv(uid, gid);
186 r = sm_semsetowner(semid, uid, gid, 0660);
192 r = drop_priv(uid, gid);
327 gid_t gid; local
330 gid
[all...]
/freebsd-head/libexec/mknetid/
H A Dhash.c134 void mstore (struct member_entry *table[], char *key, int gid, int dup) argument
145 tmp->groupid = gid;

Completed in 97 milliseconds

1234567891011>>