/openbmc/linux/kernel/ |
H A D | uid16.h | 6 long __sys_setgid(gid_t gid); 8 long __sys_setregid(gid_t rgid, gid_t egid); 10 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 12 long __sys_setfsgid(gid_t gid);
|
H A D | groups.c | 37 static int groups_to_user(gid_t __user *grouplist, in groups_to_user() 45 gid_t gid; in groups_to_user() 55 gid_t __user *grouplist) in groups_from_user() 62 gid_t gid; in groups_from_user() 161 SYSCALL_DEFINE2(getgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2() 198 SYSCALL_DEFINE2(setgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2()
|
H A D | sys.c | 372 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() 383 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid() 385 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setregid() 394 if (rgid != (gid_t) -1) { in __sys_setregid() 402 if (egid != (gid_t) -1) { in __sys_setregid() 412 if (rgid != (gid_t) -1 || in __sys_setregid() 413 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() 428 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument 438 long __sys_setgid(gid_t gid) in __sys_setgid() 474 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument [all …]
|
/openbmc/linux/include/linux/ |
H A D | uidgid.h | 27 gid_t val; 39 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() 49 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() 118 return __kgid_val(gid) != (gid_t) -1; in gid_valid() 124 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid); 127 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid); 129 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid); 138 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping() 148 static inline kgid_t make_kgid(struct user_namespace *from, gid_t gid) in make_kgid() 158 static inline gid_t from_kgid(struct user_namespace *to, kgid_t kgid) in from_kgid() [all …]
|
H A D | mnt_idmapping.h | 19 gid_t val; 33 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val() 43 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val() 56 return __vfsgid_val(gid) != (gid_t)-1; in vfsgid_valid() 190 return from_kgid(userns, AS_KGIDT(vfsgid)) != (gid_t)-1; in vfsgid_has_mapping()
|
H A D | highuid.h | 54 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid))
|
H A D | syscalls.h | 431 gid_t group, int flag); 432 asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); 651 asmlinkage long sys_setregid(gid_t rgid, gid_t egid); 652 asmlinkage long sys_setgid(gid_t gid); 657 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 658 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); 660 asmlinkage long sys_setfsgid(gid_t gid); 666 asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist); 667 asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist); 989 uid_t user, gid_t group); [all …]
|
H A D | init_syscalls.h | 8 int __init init_chown(const char *filename, uid_t user, gid_t group, int flags);
|
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/ |
H A D | fix_build_errors.patch | 10 AC_MSG_CHECKING([Figure out if getgrouplist() needs gid_t or int]) 17 -gid_t groups[32]; int ngroups; const char* user = "root"; 20 +int getgroups(int gidsetsize, gid_t grouplist[]); 22 AC_MSG_RESULT(gid_t) 23 AC_DEFINE(GETGROUPS_T,[gid_t])
|
/openbmc/qemu/hw/9pfs/ |
H A D | coth.h | 74 int coroutine_fn v9fs_co_chown(V9fsPDU *, V9fsPath *, uid_t, gid_t); 80 gid_t, dev_t, mode_t, struct stat *); 82 mode_t, uid_t, gid_t, struct stat *); 93 gid_t, int, int, struct stat *); 101 const char *, gid_t, struct stat *);
|
H A D | cofs.c | 143 gid_t gid) in v9fs_co_chown() 188 V9fsString *name, uid_t uid, gid_t gid, in v9fs_co_mknod() 311 gid_t gid, struct stat *stbuf) in v9fs_co_symlink()
|
/openbmc/qemu/ |
H A D | os-posix.c | 95 static gid_t user_gid = (gid_t)-1; /* -1 -1 >=0 */ 109 gid_t got_gid; in os_set_runas() 127 if (rc || got_gid != lv || got_gid == (gid_t)-1) { in os_set_runas() 141 (user_gid == (gid_t)-1)); in change_process_uid() 144 gid_t intended_gid = user_pwd ? user_pwd->pw_gid : user_gid; in change_process_uid()
|
/openbmc/qemu/bsd-user/ |
H A D | bsd-proc.h | 47 g_autofree gid_t *grouplist; in do_bsd_getgroups() 50 grouplist = g_try_new(gid_t, gidsetsize); in do_bsd_getgroups() 71 g_autofree gid_t *grouplist; in do_bsd_setgroups() 74 grouplist = g_try_new(gid_t, gidsetsize); in do_bsd_setgroups() 287 static inline abi_long do_bsd_setresgid(gid_t rgid, gid_t egid, gid_t sgid) in do_bsd_setresgid()
|
/openbmc/openbmc/meta-security/dynamic-layers/networking-layer/recipes-security/sssd/files/ |
H A D | fix_gid.patch | 3 | 88 | int chown_debug_file(const char *filename, uid_t uid, gid_t gid); 6 | ../sssd-2.5.0/src/util/debug.h:88:55: error: unknown type name 'gid_t' 7 | 88 | int chown_debug_file(const char *filename, uid_t uid, gid_t gid);
|
/openbmc/linux/fs/ |
H A D | mnt_idmapping.c | 138 gid_t gid; in make_vfsgid() 147 if (gid == (gid_t)-1) in make_vfsgid() 195 gid_t gid; in from_vfsgid() 201 if (gid == (gid_t)-1) in from_vfsgid()
|
H A D | open.c | 748 int chown_common(const struct path *path, uid_t user, gid_t group) in chown_common() 771 if ((group != (gid_t)-1) && !setattr_vfsgid(&newattrs, gid)) in chown_common() 794 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() 827 gid_t, group, int, flag) in SYSCALL_DEFINE5() argument 832 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 837 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 843 int vfs_fchown(struct file *file, uid_t user, gid_t group) in vfs_fchown() 856 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown() 868 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
|
H A D | internal.h | 179 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, 181 int chown_common(const struct path *path, uid_t user, gid_t group);
|
/openbmc/linux/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 136 static void ensure_group_exists(gid_t gid) in ensure_group_exists() 322 static void test_setgid(gid_t child_gid, bool expect_success) in test_setgid() 378 static void test_setgroups(gid_t* child_groups, size_t len, bool expect_success) in test_setgroups() 382 gid_t groupset[len]; in test_setgroups() 520 gid_t allowed_supp_groups[2] = {ALLOWED_CHILD1_UGID, ALLOWED_CHILD2_UGID}; in main() 521 gid_t disallowed_supp_groups[2] = {ROOT_UGID, NO_POLICY_UGID}; in main()
|
/openbmc/phosphor-user-manager/test/ |
H A D | mock_user_mgr.hpp | 21 MOCK_CONST_METHOD1(getPrimaryGroup, gid_t(const std::string& userName)); 23 bool(const std::string& userName, gid_t primaryGid,
|
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/ |
H A D | 0009-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch |
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/ |
H A D | 0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch | 64 int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode); 70 @@ -145,7 +145,7 @@ int base_filesystem_create_fd(int fd, const char *root, uid_t uid, gid_t gid) { 79 @@ -153,7 +153,7 @@ int base_filesystem_create_fd(int fd, const char *root, uid_t uid, gid_t gid) { 88 @@ -164,7 +164,7 @@ int base_filesystem_create_fd(int fd, const char *root, uid_t uid, gid_t gid) {
|
/openbmc/u-boot/include/linux/ |
H A D | types.h | 23 typedef __kernel_gid32_t gid_t; typedef 40 typedef __kernel_gid_t gid_t; typedef
|
H A D | stat.h | 53 gid_t st_gid; /* group id */ 107 gid_t st_gid;
|
/openbmc/linux/usr/ |
H A D | gen_init_cpio.c | 108 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() 157 uid_t uid, gid_t gid) in cpio_mkgeneric() 245 uid_t uid, gid_t gid, char dev_type, in cpio_mknod() 323 unsigned int mode, uid_t uid, gid_t gid, in cpio_mkfile()
|
/openbmc/linux/tools/include/nolibc/ |
H A D | std.h | 29 typedef unsigned int gid_t; typedef
|