| /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()
|
| /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 | 166 if (setgid(getgid()) == -1) in restore_uid() 184 gid_t old_gid = getgid(); in permanently_set_uid() 218 if (getgid() != pw->pw_gid || getegid() != pw->pw_gid) { in permanently_set_uid() 220 __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 | 250 if (chown(pfile, getuid(), getgid()) == -1) { in do_chown() 252 "%d\n", pfile, (int)getuid(), (int)getgid(), errno); in do_chown() 272 "%d\n", pfile, (int)getuid(), (int)getgid(), errno); in do_xattr()
|
| H A D | mkfiles.c | 57 } 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/pam-krb5/portable/ |
| H A D | issetugid.c | 32 if (getgid() != getegid()) in issetugid()
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | uid.c | 52 return getuid() != geteuid() || getgid() != getegid(); in OPENSSL_issetugid()
|
| /freebsd/contrib/pam-krb5/tests/module/ |
| H A D | cache-t.c | 59 is_int(getgid(), st.st_gid, "...with correct GID"); in check_cache() 154 pwd.pw_gid = getgid(); in main()
|
| H A D | basic-t.c | 48 pwd.pw_gid = getgid(); in main()
|
| /freebsd/usr.bin/id/ |
| H A D | id.c | 175 id = pw ? pw->pw_gid : rflag ? getgid() : getegid(); in main() 255 if ((rid = getgid()) != (eid = getegid())) { in pretty() 285 gid = getgid(); in id_print()
|
| /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/krb5/src/lib/krb5/os/ |
| H A D | krbfileio.c | 72 gid = getgid(); in k5_create_secure_file()
|
| /freebsd/crypto/krb5/src/util/support/ |
| H A D | secure_getenv.c | 97 if (!elevated_privilege && getgid() != getegid()) in k5_secure_getenv_init()
|
| /freebsd/crypto/krb5/src/include/ |
| H A D | k5-util.h | 80 # define krb5_setegid(EGID) (setresgid(getgid(), (gid_t)(EGID), getegid()))
|
| /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/contrib/libarchive/libarchive/test/ |
| H A D | test_write_disk_perms.c | 33 #define getgid() getegid() macro 152 assertChown(".", getuid(), getgid()); in DEFINE_TEST() 218 assertChown("dir_owner", original_uid, getgid()); in DEFINE_TEST()
|
| /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()
|