Home
last modified time | relevance | path

Searched refs:gid_t (Results 1 – 25 of 107) sorted by relevance

12345

/openbmc/linux/kernel/
H A Duid16.h6 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 Dgroups.c37 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 Dsys.c372 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 Duidgid.h27 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 Dmnt_idmapping.h19 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 Dhighuid.h54 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid))
H A Dsyscalls.h431 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 Dinit_syscalls.h8 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 Dfix_build_errors.patch10 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 Dcoth.h74 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 Dcofs.c143 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 Dos-posix.c95 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 Dbsd-proc.h47 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 Dfix_gid.patch3 | 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 Dmnt_idmapping.c138 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 Dopen.c748 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 Dinternal.h179 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 Dsafesetid-test.c136 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 Dmock_user_mgr.hpp21 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 D0009-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 D0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch64 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 Dtypes.h23 typedef __kernel_gid32_t gid_t; typedef
40 typedef __kernel_gid_t gid_t; typedef
H A Dstat.h53 gid_t st_gid; /* group id */
107 gid_t st_gid;
/openbmc/linux/usr/
H A Dgen_init_cpio.c108 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 Dstd.h29 typedef unsigned int gid_t; typedef

12345