Searched refs:groups (Results 1 - 25 of 98) sorted by relevance

1234

/asus-wl-520gu-7.0.1.45/src/router/samba/testsuite/smbd/
H A Dsec_ctx_utils.h27 void get_random_grouplist(int *ngroups, gid_t **groups);
28 BOOL verify_current_groups(int ngroups, gid_t *groups);
H A Dsec_ctx_utils.c28 /* Generate random list of groups */
30 void get_random_grouplist(int *ngroups, gid_t **groups) argument
35 *groups = malloc(*ngroups * sizeof(gid_t));
37 if (!groups) {
43 (*groups)[i] = random() % 32767;
47 /* Check a list of groups with current groups */
49 BOOL verify_current_groups(int ngroups, gid_t *groups) argument
63 return memcmp(actual_groups, groups, actual_ngroups *
H A Dsec_ctx_current_user.c31 gid_t *groups; local
56 if (current_user.ngroups != 0 || current_user.groups) {
57 printf("FAIL: current_user groups not updated after push\n");
63 get_random_grouplist(&ngroups, &groups);
70 set_sec_ctx(2, 3, ngroups, groups);
79 (memcmp(current_user.groups, groups,
81 printf("FAIL: current_user groups not updated\n");
H A Dsec_ctx_root.c28 gid_t *groups, *actual_groups; local
35 get_random_grouplist(&ngroups, &groups);
36 set_sec_ctx(1, 1, ngroups, groups);
53 current_user.ngroups != 0 || current_user.groups) {
H A Dsec_ctx_torture.c49 gid_t *groups; local
56 get_random_grouplist(&ngroups, &groups);
60 ngroups, groups);
63 groups)) {
64 printf("FAIL: groups did not stick\n");
75 free(groups);
H A Dsec_ctx_groups.c28 gid_t *groups, *initial_groups, *check_groups, *final_groups; local
33 /* Save current groups */
39 printf("Initial groups are: ");
45 /* Push a context plus groups */
47 get_random_grouplist(&ngroups, &groups);
49 printf("Random groups are: ");
51 printf("%d, ", groups[i]);
60 set_sec_ctx(1, 2, ngroups, groups);
68 printf("Actual groups are: ");
75 printf("FAIL: number of groups differ
[all...]
H A Dse_access_check_nullsd.c31 BOOL nullsd_check(struct passwd *pw, int ngroups, gid_t *groups) argument
37 ngroups, groups,
H A Dse_access_check_empty.c36 BOOL emptysd_check(struct passwd *pw, int ngroups, gid_t *groups) argument
45 ngroups, groups,
56 ngroups, groups, 0x1234,
68 ngroups, groups, 0,
H A Dse_access_check_utils.h44 void visit_pwdb(BOOL (*fn)(struct passwd *pw, int ngroups, gid_t *groups));
H A Dse_access_check_utils.c129 void visit_pwdb(BOOL (*fn)(struct passwd *pw, int ngroups, gid_t *groups)) argument
133 gid_t *groups; local
144 groups = malloc(sizeof(gid_t) * ngroups);
145 getgroups(ngroups, groups);
149 result = fn(pw, ngroups, groups);
154 free(groups);
H A Dse_access_check_allowall.c38 BOOL allowall_check(struct passwd *pw, int ngroups, gid_t *groups) argument
44 ngroups, groups,
H A Dse_access_check_denyall.c38 BOOL denyall_check(struct passwd *pw, int ngroups, gid_t *groups) argument
44 ngroups, groups,
/asus-wl-520gu-7.0.1.45/src/router/samba/source/lib/
H A Dutil_smbd.c30 return a full list of groups for a user
32 returns the number of groups the user is a member of. The return will include the
40 int getgroups_user(const char *user, gid_t **groups) argument
49 (*groups) = (gid_t *)malloc(sizeof(gid_t) * max_grp);
50 if (! *groups) {
56 ngrp = sys_getgrouplist(user, pwd->pw_gid, *groups, &max_grp);
59 free(*groups);
H A Dsystem_smbd.c31 This is a *much* faster way of getting the list of groups for a user
34 network with hundeds of thousands of groups and users. The new method
39 static int getgrouplist_internals(const char *user, gid_t gid, gid_t *groups, int *grpcnt) argument
49 /* work out how many groups we need to save */
86 ret = getgroups(*grpcnt - 1, &groups[1]);
88 groups[0] = gid;
108 int sys_getgrouplist(const char *user, gid_t gid, gid_t *groups, int *grpcnt) argument
126 retval = getgrouplist(user, gid, groups, grpcnt);
129 retval = getgrouplist_internals(user, gid, groups, grpcnt);
/asus-wl-520gu-7.0.1.45/src/router/busybox/libbb/
H A Dparse_mode.c62 mode_t groups; local
72 groups = 0;
79 groups |= group_set[(int)(p-group_chars)];
88 if (groups == 0) { /* The default is "all" */
89 groups |= S_ISUID | S_ISGID | S_ISVTX
94 if ((c < '0') || (c > '7') || (mode | groups)) {
114 andMode &= ~(groups); /* Now fall through. */
116 orMode |= mode & groups;
119 andMode &= ~(mode & groups);
120 orMode &= ~(mode & groups);
[all...]
/asus-wl-520gu-7.0.1.45/src/router/samba/testsuite/nsswitch/
H A Dinitgroups.c10 gid_t *groups; local
27 groups = (gid_t *)malloc(sizeof(gid_t) * ngroups);
28 ngroups = getgroups(ngroups, groups);
30 printf("%s is a member of groups:\n", argv[1]);
35 grp = getgrgid(groups[i]);
37 printf("%d (%s)\n", groups[i], grp ? grp->gr_name : "?");
H A Dlogin.exp47 set test_desc "supplementary groups"
49 # Get list of groups
60 set groups $expect_out(1,string)
63 verbose "id groups are $groups"
64 verbose "wbinfo groups are $wb_groups"
66 # Check all groups from id are in wbinfo and vice-versa
70 foreach { group } $groups {
87 foreach { group } $groups {
101 pass "id/wbinfo groups matc
[all...]
/asus-wl-520gu-7.0.1.45/src/router/samba/source/smbd/
H A Dsec_ctx.c29 gid_t *groups; member in struct:sec_ctx
132 Get the list of current groups.
140 gid_t *groups = NULL; local
157 if((groups = (gid_t *)malloc(sizeof(gid_t)*(ngroups+1))) == NULL) {
162 if ((ngroups = sys_getgroups(ngroups,groups)) == -1) {
169 (*p_groups) = groups;
171 DEBUG( 3, ( "get_current_groups: user is in %u groups: ", ngroups));
173 DEBUG( 3, ( "%s%d", (i ? ", " : ""), (int)groups[i] ) );
180 SAFE_FREE(groups);
186 Initialize the groups
281 set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, NT_USER_TOKEN *token) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/ip/
H A Dipmonitor.c85 unsigned groups = ~RTMGRP_TC; local
100 groups = 0;
103 groups = 0;
106 groups = 0;
108 groups = ~RTMGRP_TC;
119 groups |= RTMGRP_LINK;
122 groups |= RTMGRP_IPV4_IFADDR;
124 groups |= RTMGRP_IPV6_IFADDR;
128 groups |= RTMGRP_IPV4_ROUTE;
130 groups |
[all...]
H A Drtmon.c72 unsigned groups = ~0U; local
113 groups = 0;
116 groups = 0;
119 groups = 0;
121 groups = ~0U;
136 groups |= RTMGRP_LINK;
139 groups |= RTMGRP_IPV4_IFADDR;
141 groups |= RTMGRP_IPV6_IFADDR;
145 groups |= RTMGRP_IPV4_ROUTE;
147 groups |
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/
H A Dintermezzo_journal.h16 u32 groups[0]; member in struct:journal_prefix
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/
H A Dintermezzo_journal.h16 u32 groups[0]; member in struct:journal_prefix
/asus-wl-520gu-7.0.1.45/src/router/acl/test/
H A Drun119 my @groups = ();
126 push @groups, $gid
132 my $groups = join(" ", ($gid, $gid, @groups));
133 #print STDERR "[[$groups]]\n";
137 $) = $groups;
158 my %groups = map { $_ eq $gid ? () : ($_ => 1) } (split /\s/, $));
160 #print STDERR "<<", join("/", keys %groups), ">>\n";
161 my $groups = join(" ", ($gid, $gid, keys %groups));
[all...]
/asus-wl-520gu-7.0.1.45/src/router/attr/test/
H A Drun119 my @groups = ();
126 push @groups, $gid
132 my $groups = join(" ", ($gid, $gid, @groups));
133 #print STDERR "[[$groups]]\n";
137 $) = $groups;
158 my %groups = map { $_ eq $gid ? () : ($_ => 1) } (split /\s/, $));
160 #print STDERR "<<", join("/", keys %groups), ">>\n";
161 my $groups = join(" ", ($gid, $gid, keys %groups));
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/sunrpc/
H A Dauth_unix.c83 int groups = current->ngroups; local
84 if (groups > NFS_NGROUPS)
85 groups = NFS_NGROUPS;
91 for (i = 0; i < groups; i++)
92 cred->uc_gids[i] = (gid_t) current->groups[i];
141 int groups; local
149 groups = current->ngroups;
150 if (groups > NFS_NGROUPS)
151 groups = NFS_NGROUPS;
152 for (i = 0; i < groups ;
[all...]

Completed in 327 milliseconds

1234