/kernel/linux/linux-6.6/tools/testing/selftests/mount/ |
H A D | unprivileged-remount-test.c | 157 gid_t gid; in create_and_enter_userns() local 160 gid = getgid(); in create_and_enter_userns() 169 write_file("/proc/self/gid_map", "0 %d 1", gid); in create_and_enter_userns()
|
/kernel/linux/linux-6.6/security/tomoyo/ |
H A D | tomoyo.c | 370 * @gid: Group ID. 374 static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid) in tomoyo_path_chown() argument 381 if (!error && gid_valid(gid)) in tomoyo_path_chown() 383 from_kgid(&init_user_ns, gid)); in tomoyo_path_chown()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | core-util.h | 66 int pa_make_secure_dir(const char* dir, mode_t m, uid_t uid, gid_t gid, bool update_perms); 67 int pa_make_secure_parent_dir(const char *fn, mode_t, uid_t uid, gid_t gid, bool update_perms); 122 int pa_own_uid_in_group(const char *name, gid_t *gid);
|
/kernel/linux/linux-6.6/security/integrity/ima/ |
H A D | ima_policy.c | 107 kgid_t gid; member 137 * written in terms of .action, .func, .mask, .fsmagic, .uid, .gid, 615 if ((rule->flags & IMA_GID) && !rule->gid_op(cred->gid, rule->gid)) in ima_match_rules() 619 if (!rule->gid_op(cred->egid, rule->gid) in ima_match_rules() 620 && !rule->gid_op(cred->sgid, rule->gid) in ima_match_rules() 621 && !rule->gid_op(cred->gid, rule->gid)) in ima_match_rules() 623 } else if (!rule->gid_op(cred->egid, rule->gid)) in ima_match_rules() 1100 {Opt_gid_eq, "gid [all...] |
/third_party/node/lib/ |
H A D | fs.js | 1996 * @param {number} gid 2000 function lchown(path, uid, gid, callback) { 2004 validateInteger(gid, 'gid', -1, kMaxUserId); 2007 binding.lchown(pathModule.toNamespacedPath(path), uid, gid, req); 2014 * @param {number} gid 2017 function lchownSync(path, uid, gid) { 2020 validateInteger(gid, 'gid', -1, kMaxUserId); 2022 binding.lchown(pathModule.toNamespacedPath(path), uid, gid, undefine [all...] |
H A D | child_process.js | 111 * gid?: number; 222 * gid?: number; 315 * gid?: number; 354 gid: options.gid, 589 // Validate the gid, if present. 590 if (options.gid != null && !isInt32(options.gid)) { 591 throw new ERR_INVALID_ARG_TYPE('options.gid', 'int32', options.gid); [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/ |
H A D | provider.c | 241 union ib_gid *gid) in c4iw_query_gid() 245 pr_debug("ibdev %p, port %d, index %d, gid %p\n", in c4iw_query_gid() 246 ibdev, port, index, gid); in c4iw_query_gid() 250 memset(&(gid->raw[0]), 0, sizeof(gid->raw)); in c4iw_query_gid() 251 memcpy(&(gid->raw[0]), dev->rdev.lldi.ports[port-1]->dev_addr, 6); in c4iw_query_gid() 240 c4iw_query_gid(struct ib_device *ibdev, u8 port, int index, union ib_gid *gid) c4iw_query_gid() argument
|
/kernel/linux/linux-5.10/fs/nfsd/ |
H A D | nfs4idmap.c | 659 kgid_t *gid) in nfsd_map_name_to_gid() 668 *gid = make_kgid(nfsd_user_namespace(rqstp), id); in nfsd_map_name_to_gid() 669 if (!gid_valid(*gid)) in nfsd_map_name_to_gid() 682 kgid_t gid) in nfsd4_encode_group() 684 u32 id = from_kgid_munged(nfsd_user_namespace(rqstp), gid); in nfsd4_encode_group() 658 nfsd_map_name_to_gid(struct svc_rqst *rqstp, const char *name, size_t namelen, kgid_t *gid) nfsd_map_name_to_gid() argument 681 nfsd4_encode_group(struct xdr_stream *xdr, struct svc_rqst *rqstp, kgid_t gid) nfsd4_encode_group() argument
|
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | nfs4idmap.c | 660 kgid_t *gid) in nfsd_map_name_to_gid() 669 *gid = make_kgid(nfsd_user_namespace(rqstp), id); in nfsd_map_name_to_gid() 670 if (!gid_valid(*gid)) in nfsd_map_name_to_gid() 683 kgid_t gid) in nfsd4_encode_group() 685 u32 id = from_kgid_munged(nfsd_user_namespace(rqstp), gid); in nfsd4_encode_group() 659 nfsd_map_name_to_gid(struct svc_rqst *rqstp, const char *name, size_t namelen, kgid_t *gid) nfsd_map_name_to_gid() argument 682 nfsd4_encode_group(struct xdr_stream *xdr, struct svc_rqst *rqstp, kgid_t gid) nfsd4_encode_group() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | audit.h | 68 kgid_t gid; member 404 extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); 436 static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) in audit_ipc_set_perm() argument 439 __audit_ipc_set_perm(qbytes, uid, gid, mode); in audit_ipc_set_perm() 633 gid_t gid, umode_t mode) in audit_ipc_set_perm() 632 audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) audit_ipc_set_perm() argument
|
H A D | kernfs.h | 419 kuid_t uid, kgid_t gid, 425 kuid_t uid, kgid_t gid, 517 umode_t mode, kuid_t uid, kgid_t gid, in kernfs_create_dir_ns() 523 umode_t mode, kuid_t uid, kgid_t gid, in __kernfs_create_file() 516 kernfs_create_dir_ns(struct kernfs_node *parent, const char *name, umode_t mode, kuid_t uid, kgid_t gid, void *priv, const void *ns) kernfs_create_dir_ns() argument 522 __kernfs_create_file(struct kernfs_node *parent, const char *name, umode_t mode, kuid_t uid, kgid_t gid, loff_t size, const struct kernfs_ops *ops, void *priv, const void *ns, struct lock_class_key *key) __kernfs_create_file() argument
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/cxgb4/ |
H A D | provider.c | 242 union ib_gid *gid) in c4iw_query_gid() 246 pr_debug("ibdev %p, port %u, index %d, gid %p\n", in c4iw_query_gid() 247 ibdev, port, index, gid); in c4iw_query_gid() 251 memset(&(gid->raw[0]), 0, sizeof(gid->raw)); in c4iw_query_gid() 252 memcpy(&(gid->raw[0]), dev->rdev.lldi.ports[port-1]->dev_addr, 6); in c4iw_query_gid() 241 c4iw_query_gid(struct ib_device *ibdev, u32 port, int index, union ib_gid *gid) c4iw_query_gid() argument
|
/third_party/skia/third_party/externals/freetype/src/psaux/ |
H A D | psft.c | 664 CF2_Int gid; in FT_LOCAL_DEF() local 679 gid = code; in FT_LOCAL_DEF() 683 gid = cff_lookup_glyph_by_stdcharcode( decoder->cff, code ); in FT_LOCAL_DEF() 684 if ( gid < 0 ) in FT_LOCAL_DEF() 689 (CF2_UInt)gid, in FT_LOCAL_DEF()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | user_namespace.c | 443 * make_kgid - Map a user-namespace gid pair into a kgid. 444 * @ns: User namespace that the gid is in 445 * @gid: group identifier 447 * Maps a user-namespace gid pair into a kernel internal kgid, 450 * When there is no mapping defined for the user-namespace gid 455 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() argument 457 /* Map the gid to a global kernel gid */ in make_kgid() 458 return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); in make_kgid() 463 * from_kgid - Create a gid fro 500 gid_t gid; from_kgid_munged() local 1159 kgid_t gid = make_kgid(ns->parent, id); new_idmap_permitted() local [all...] |
/kernel/linux/linux-5.10/fs/hugetlbfs/ |
H A D | inode.c | 61 kgid_t gid; member 78 fsparam_u32 ("gid", Opt_gid), 805 inode->i_gid = ctx->gid; in hugetlbfs_get_root() 1021 if (!gid_eq(sbinfo->gid, GLOBAL_ROOT_GID)) in hugetlbfs_show_options() 1022 seq_printf(m, ",gid=%u", in hugetlbfs_show_options() 1023 from_kgid_munged(&init_user_ns, sbinfo->gid)); in hugetlbfs_show_options() 1253 ctx->gid = make_kgid(current_user_ns(), result.uint_32); in hugetlbfs_parse_param() 1254 if (!gid_valid(ctx->gid)) in hugetlbfs_parse_param() 1353 sbinfo->gid = ctx->gid; in hugetlbfs_fill_super() [all...] |
/kernel/linux/linux-6.6/drivers/firmware/arm_scmi/ |
H A D | notify.c | 206 * @gid: GroupID used for devres 221 void *gid; member 1648 void *gid; in scmi_notification_init() local 1651 gid = devres_open_group(handle->dev, NULL, GFP_KERNEL); in scmi_notification_init() 1652 if (!gid) in scmi_notification_init() 1659 ni->gid = gid; in scmi_notification_init() 1685 devres_close_group(handle->dev, ni->gid); in scmi_notification_init() 1691 devres_release_group(handle->dev, gid); in scmi_notification_init() 1711 devres_release_group(ni->handle->dev, ni->gid); in scmi_notification_exit() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | user_namespace.c | 464 * make_kgid - Map a user-namespace gid pair into a kgid. 465 * @ns: User namespace that the gid is in 466 * @gid: group identifier 468 * Maps a user-namespace gid pair into a kernel internal kgid, 471 * When there is no mapping defined for the user-namespace gid 476 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() argument 478 /* Map the gid to a global kernel gid */ in make_kgid() 479 return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); in make_kgid() 484 * from_kgid - Create a gid fro 521 gid_t gid; from_kgid_munged() local 1180 kgid_t gid = make_kgid(ns->parent, id); new_idmap_permitted() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | installd_client.cpp | 102 || createDirParam.uid < 0 || createDirParam.gid < 0) { in CreateBundleDataDir() 273 const std::string &dir, const int32_t mode, const int32_t uid, const int32_t gid) in Mkdir() 280 return CallService(&IInstalld::Mkdir, dir, mode, uid, gid); in Mkdir() 446 || createDirParam.uid < 0 || createDirParam.gid < 0 || createDirParam.extensionDirs.empty()) { in CreateExtensionDataDir() 272 Mkdir( const std::string &dir, const int32_t mode, const int32_t uid, const int32_t gid) Mkdir() argument
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
H A D | e500.c | 186 unsigned int as, unsigned int gid, in kvmppc_e500_get_sid() 193 BUG_ON(gid >= NUM_TIDS); in kvmppc_e500_get_sid() 196 sid = local_sid_lookup(&idt->id[as][gid][pr]); in kvmppc_e500_get_sid() 200 sid = local_sid_setup_one(&idt->id[as][gid][pr]); in kvmppc_e500_get_sid() 185 kvmppc_e500_get_sid(struct kvmppc_vcpu_e500 *vcpu_e500, unsigned int as, unsigned int gid, unsigned int pr, int avoid_recursion) kvmppc_e500_get_sid() argument
|
/kernel/linux/linux-6.6/arch/powerpc/kvm/ |
H A D | e500.c | 186 unsigned int as, unsigned int gid, in kvmppc_e500_get_sid() 193 BUG_ON(gid >= NUM_TIDS); in kvmppc_e500_get_sid() 196 sid = local_sid_lookup(&idt->id[as][gid][pr]); in kvmppc_e500_get_sid() 200 sid = local_sid_setup_one(&idt->id[as][gid][pr]); in kvmppc_e500_get_sid() 185 kvmppc_e500_get_sid(struct kvmppc_vcpu_e500 *vcpu_e500, unsigned int as, unsigned int gid, unsigned int pr, int avoid_recursion) kvmppc_e500_get_sid() argument
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | fuse.h | 270 uint32_t gid; member 292 uint32_t gid; member 745 uint32_t gid; member 969 uint32_t gid; member
|
/kernel/linux/linux-6.6/net/smc/ |
H A D | smc_clc.h | 93 u8 gid[16]; /* gid of ib_device port */ member 129 __be64 gid; /* ISM GID */ member 207 __be64 gid; /* Sender GID */ member 256 u8 gid[][SMC_GID_SIZE]; member
|
/kernel/linux/linux-6.6/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 136 static void ensure_group_exists(gid_t gid) in ensure_group_exists() argument 143 if (getgrgid(gid) == NULL) { in ensure_group_exists() 150 snprintf(name_str, 10, "group %d", gid); in ensure_group_exists() 152 g.gr_gid=gid; in ensure_group_exists() 491 die("Error with set gid(%d)\n", NO_POLICY_UGID); in main() 506 die("Error with set gid(%d)\n", RESTRICTED_PARENT_UGID); in main()
|
/third_party/eudev/src/shared/ |
H A D | util.h | 228 int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid); 232 int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode); 241 int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home, const char **shell); 242 int get_group_creds(const char **groupname, gid_t *gid);
|
/third_party/libwebsockets/lib/misc/ |
H A D | lws-struct-sqlite.c | 509 gid_t gid = 0; in lws_struct_sq3_open() local 523 lws_get_effective_uid_gid(context, &uid, &gid); in lws_struct_sq3_open() 525 if (chown(sqlite3_path, uid, gid)) in lws_struct_sq3_open() 530 sqlite3_path, (unsigned int)uid, (unsigned int)gid); in lws_struct_sq3_open()
|