/freebsd/contrib/kyua/utils/process/ |
H A D | isolation.cpp | 100 % file % uid % gid % ::getuid() % ::getgid(), errno); in do_chown() 154 if (user.gid != ::getgid()) { in isolate_child() 157 % user.gid % ::getuid() % ::getgid(), errno); in isolate_child() 163 % user.gid % ::getuid() % ::getgid(), errno); in isolate_child() 169 % user.uid % ::getuid() % ::getgid(), errno); in isolate_child() 194 const bool change_group = user.gid != ::getgid(); in isolate_path() 205 do_chown(file, user.uid, ::getgid()); in isolate_path()
|
H A D | isolation_test.cpp | 169 if (::getgid() == 0) { in operator ()() 334 ATF_REQUIRE_EQ(user.gid, ::getgid()); in ATF_TEST_CASE_BODY() 577 unprivileged_user.gid = ::getgid(); in ATF_TEST_CASE_BODY()
|
/freebsd/contrib/sendmail/test/ |
H A D | t_setgid.c | 35 (int) getgid(), (int) getegid()); 45 gid_t realgid = getgid(); 76 if (getgid() != effgid) 99 if (getgid() != effgid)
|
H A D | t_dropgid.c | 35 (int) getgid(), (int) getegid()); 60 gid_t realgid = getgid(); 106 if (getgid() != realgid) 130 if (getgid() != realgid)
|
/freebsd/crypto/openssh/ |
H A D | uidswap.c | 167 if (setgid(getgid()) == -1) in restore_uid() 185 gid_t old_gid = getgid(); in permanently_set_uid() 219 if (getgid() != pw->pw_gid || getegid() != pw->pw_gid) { in permanently_set_uid() 221 __func__, (u_int)getgid(), (u_int)getegid(), in permanently_set_uid()
|
/freebsd/contrib/kyua/utils/ |
H A D | passwd_test.cpp | 77 ATF_REQUIRE_EQ(::getgid(), user.gid); in ATF_TEST_CASE_BODY() 101 ATF_REQUIRE_EQ(::getgid(), user.gid); in ATF_TEST_CASE_BODY() 138 ATF_REQUIRE_EQ(::getgid(), user.gid); in ATF_TEST_CASE_BODY()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | ctime.c | 249 if (chown(pfile, getuid(), getgid()) == -1) { in do_chown() 251 "%d\n", pfile, (int)getuid(), (int)getgid(), errno); in do_chown() 271 "%d\n", pfile, (int)getuid(), (int)getgid(), errno); in do_xattr()
|
H A D | mkfiles.c | 56 } else if (fchown(fd, getuid(), getgid()) < 0) { in main()
|
/freebsd/contrib/sendmail/libsm/ |
H A D | t-shm.c | 88 i = sm_shmsetowner(shmid, getuid(), getgid(), 0644); 173 r = sm_shmsetowner(shmid, getuid(), getgid(), 0660);
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | getgid.c | 40 getgid(void) in getgid() function
|
H A D | getegid.c | 43 return getgid(); in getegid()
|
H A D | issuid.c | 50 if(getgid() != getegid()) in issuid()
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | access.c | 190 || getgid() != getegid()) 212 setfsgid(getgid()); \
|
/freebsd/usr.bin/id/ |
H A D | id.c | 168 id = pw ? pw->pw_gid : rflag ? getgid() : getegid(); in main() 245 if ((rid = getgid()) != (eid = getegid())) { in pretty() 273 gid = getgid(); in id_print()
|
/freebsd/crypto/openssl/crypto/ |
H A D | uid.c | 52 return getuid() != geteuid() || getgid() != getegid(); in OPENSSL_issetugid()
|
/freebsd/tests/sys/cddl/zfs/tests/ctime/ |
H A D | ctime_001_pos.c | 369 if (chown(pfile, getuid(), getgid()) == -1) { in do_chown() 374 (int)getgid()); in do_chown()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-getpeereid.c | 67 *gid = getgid(); in getpeereid()
|
/freebsd/usr.sbin/cron/cron/ |
H A D | externs.h | 88 #define MY_GID(pw) getgid()
|
/freebsd/usr.bin/at/ |
H A D | privs.h | 74 real_gid = getgid(); \
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_msgctl.c | 139 msgds.msg_perm.gid = getgid(); in ATF_TC_BODY() 287 msgds.msg_perm.gid = getgid(); in ATF_TC_BODY()
|
H A D | t_getgroups.c | 73 gid_t gid = getgid(); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/usr.bin/id/ |
H A D | pwgr.c | 50 getgid(void) in getgid() function
|
/freebsd/contrib/tcsh/ |
H A D | sh.types.h | 113 extern gid_t getgid(), getegid();
|
/freebsd/usr.sbin/bluetooth/sdpd/ |
H A D | main.c | 161 gid = getgid(); in drop_root()
|
/freebsd/usr.bin/bluetooth/btsockstat/ |
H A D | btsockstat.c | 160 if (setgid(getgid()) != 0) in main() 589 if (setgid(getgid()) != 0) in kopen()
|