Searched refs:gid (Results 1 - 25 of 547) sorted by relevance

1234567891011>>

/netbsd-current/external/ibm-public/postfix/dist/src/util/
H A Dset_ugid.c11 /* void set_ugid(uid, gid)
13 /* gid_t gid;
47 void set_ugid(uid_t uid, gid_t gid) argument
54 if (setgid(gid) < 0)
55 msg_fatal("setgid(%ld): %m", (long) gid);
56 if (setgroups(1, &gid) < 0)
57 msg_fatal("setgroups(1, &%ld): %m", (long) gid);
61 msg_info("setugid: uid %ld gid %ld", (long) uid, (long) gid);
H A Dchroot_uid.c49 gid_t gid; local
52 * Look up the uid/gid before entering the jail, and save them so they
59 gid = pwd->pw_gid;
60 if (setgid(gid) < 0)
61 msg_fatal("setgid(%ld): %m", (long) gid);
62 if (initgroups(user_name, gid) < 0)
H A Dset_eugid.h25 #define SAVE_AND_SET_EUGID(uid, gid) do { \
28 set_eugid((uid), (gid));
/netbsd-current/crypto/external/bsd/openssh/dist/
H A Dgetpeereid.c35 getpeereid(int s, uid_t *euid, gid_t *gid) argument
43 *gid = cred.gid;
49 getpeereid(int s, uid_t *euid, gid_t *gid) argument
52 *gid = getgid();
H A Dsftp-usergroup.h25 const char *rgroup_name(uid_t gid);
/netbsd-current/external/bsd/libarchive/dist/cpio/test/
H A Dtest_owner_parse.c63 skipping("No uid/gid configuration for this OS");
65 int uid, gid;
67 assert(NULL == owner_parse(ROOT, &uid, &gid));
70 assertEqualInt(-1, gid);
73 assert(NULL == owner_parse(ROOT ":", &uid, &gid));
76 assert(int_in_list(gid, root_gids,
79 assert(NULL == owner_parse(ROOT ".", &uid, &gid));
82 assert(int_in_list(gid, root_gids,
85 assert(NULL == owner_parse("111", &uid, &gid));
87 assertEqualInt(-1, gid);
[all...]
/netbsd-current/sys/arch/alpha/mcbus/
H A Dmcbusreg.h81 #define MCPCIA_BRIDGE_ADDR(gid, mid) \
83 (((unsigned long) gid) << MCBUS_GID_SHIFT) | \
/netbsd-current/external/bsd/tmux/dist/compat/
H A Dgetpeereid.c30 getpeereid(int s, uid_t *uid, gid_t *gid) argument
39 *gid = uc.gid;
48 if ((*gid = ucred_getrgid(ucred)) == -1)
54 *gid = getegid();
/netbsd-current/external/bsd/openldap/dist/servers/slapd/
H A Duser.c52 gid_t gid = 0; local
90 gid = pwd->pw_gid;
108 gid = (uid_t)g;
110 grp = getgrgid( gid );
116 gid = grp->gr_gid;
129 if ( getuid() == 0 && initgroups( user, gid ) != 0 ) {
131 "Could not set the group access (gid) list\n" );
142 if ( setgid( gid ) != 0 ) {
144 (int) gid );
149 if ( setegid( gid ) !
[all...]
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/
H A Dchown.c37 _GL_UNUSED gid_t gid)
55 rpl_chown (const char *file, uid_t uid, gid_t gid) argument
62 if (gid != (gid_t) -1 || uid != (uid_t) -1)
71 if (gid == (gid_t) -1 || uid == (uid_t) -1)
76 if (gid == (gid_t) -1)
77 gid = st.st_gid;
99 result = fchown (fd, uid, gid);
131 result = chown (file, uid, gid);
136 && (gid == st.st_gid || gid
36 chown(_GL_UNUSED const char *file, _GL_UNUSED uid_t uid, _GL_UNUSED gid_t gid) argument
[all...]
H A Dfchown-stub.c30 fchown (int fd, uid_t uid, gid_t gid) argument
/netbsd-current/tests/lib/libc/c063/
H A Dt_fchownat.c56 static int getuser(uid_t *uid, gid_t *gid) argument
64 *gid = pw->pw_gid;
80 gid_t gid; local
83 ATF_REQUIRE(getuser(&uid, &gid) == 0);
89 ATF_REQUIRE(fchownat(dfd, BASEFILE, uid, gid, 0) == 0);
94 ATF_REQUIRE(st.st_gid == gid);
108 gid_t gid; local
111 ATF_REQUIRE(getuser(&uid, &gid) == 0);
117 ATF_REQUIRE(fchownat(AT_FDCWD, BASEFILE, uid, gid, 0) == 0);
121 ATF_REQUIRE(st.st_gid == gid);
134 gid_t gid; local
151 gid_t gid; local
172 gid_t gid; local
194 gid_t gid; local
214 gid_t gid; local
[all...]
/netbsd-current/sys/fs/filecorefs/
H A Dfilecore_mount.h77 gid_t gid; /* gid that owns filecore files */ member in struct:filecore_args
/netbsd-current/sys/fs/ntfs/
H A Dntfsmount.h40 gid_t gid; /* gid that owns ntfs files */ member in struct:ntfs_args
/netbsd-current/external/gpl3/gdb/dist/sim/common/
H A Dportability.c56 int setgid(int gid) argument
H A Dportability.h40 int setgid(int gid);
/netbsd-current/crypto/external/bsd/heimdal/dist/kcm/
H A Dacl.c130 if (client->gid == ccache->gid) {
163 if (ccache->gid != client->gid)
180 gid_t gid)
191 if (ccache->gid != client->gid)
197 ccache->gid = gid;
176 kcm_chown(krb5_context context, kcm_client *client, kcm_ccache ccache, uid_t uid, gid_t gid) argument
/netbsd-current/external/bsd/atf/dist/atf-c/detail/
H A Duser.c49 atf_user_is_member_of_group(gid_t gid) argument
63 if (groups[i] == gid)
/netbsd-current/external/bsd/iscsi/dist/src/osd/
H A Dstart_osd5 mount -t osdfs /dev/so0 /mnt -o gid=0x2d159c01 -o uid=0x2c8f1801
/netbsd-current/external/gpl3/gdb.old/dist/sim/mn10300/
H A Ddv-mn103int.c126 int gid; member in struct:mn103int_group
333 int gid; local
348 for (gid = 0; gid < NR_GROUPS; gid++)
350 struct mn103int_group *group = &controller->group[gid];
352 group->gid = gid;
353 if (FIRST_NMI_GROUP <= gid && gid <
377 int gid; local
441 int gid; local
513 int gid = (base / 4) % NR_GROUPS; local
693 int gid; local
713 int gid; local
[all...]
/netbsd-current/external/gpl3/gdb/dist/sim/mn10300/
H A Ddv-mn103int.c128 int gid; member in struct:mn103int_group
335 int gid; local
350 for (gid = 0; gid < NR_GROUPS; gid++)
352 struct mn103int_group *group = &controller->group[gid];
354 group->gid = gid;
355 if (FIRST_NMI_GROUP <= gid && gid <
379 int gid; local
443 int gid; local
515 int gid = (base / 4) % NR_GROUPS; local
695 int gid; local
715 int gid; local
[all...]
/netbsd-current/external/bsd/kyua-cli/dist/utils/
H A Dpasswd.hpp52 unsigned int gid; member in class:utils::passwd::user
/netbsd-current/lib/libc/gen/
H A Dpwcache.h53 #define GID_SZ 251 /* size of gid to group_name cache */
54 #define GNM_SZ 251 /* size of group_name to gid cache */
59 * Node structures used in the user, group, uid, and gid caches.
70 char name[GNMLEN]; /* gid name */
71 gid_t gid; /* cached gid */ member in struct:gidc
/netbsd-current/sys/rump/fs/lib/libumap/
H A DMakefile7 COMMENT=uid/gid mapping layer
/netbsd-current/external/mit/libuv/dist/test/
H A Dtest-get-passwd.c72 ASSERT_EQ(pwd.gid, (unsigned)-1);
75 ASSERT_NE(pwd.gid, (unsigned)-1);
77 if (pwd.uid != 0 && pwd.gid != getgid())
79 ASSERT_EQ(pwd.gid, getegid());

Completed in 283 milliseconds

1234567891011>>