Searched refs:scontext (Results 1 - 15 of 15) sorted by relevance

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/coreutils/libcoreutils/
H A Dgetopt_mk_fifo_nod.c31 security_context_t scontext; local
34 opt = getopt32(argv, "m:" USE_SELINUX("Z:"), &smode USE_SELINUX(,&scontext));
43 setfscreatecon_or_die(scontext);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/libbb/
H A Dselinux_common.c32 void setfscreatecon_or_die(security_context_t scontext) argument
34 if (setfscreatecon(scontext) < 0) {
38 "file creation context to %s", scontext);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/udev/
H A Dudev_selinux.c89 security_context_t scontext = NULL; local
96 ret = matchmediacon(media, &scontext);
102 if (matchpathcon(file, mode, &scontext) < 0) {
107 if (lsetfilecon(file, scontext) < 0)
110 freecon(scontext);
117 security_context_t scontext = NULL; local
124 ret = matchmediacon(media, &scontext);
130 if (matchpathcon(file, mode, &scontext) < 0) {
135 if (setfscreatecon(scontext) < 0)
138 freecon(scontext);
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/coreutils/
H A Dmkdir.c46 security_context_t scontext; local
52 opt = getopt32(argv, "m:p" USE_SELINUX("Z:"), &smode USE_SELINUX(,&scontext));
64 setfscreatecon_or_die(scontext);
H A Dinstall.c41 security_context_t scontext = NULL; local
50 if (matchpathcon(path, s.st_mode, &scontext) < 0) {
53 if (strcmp(scontext, "<<none>>") == 0) {
57 if (lsetfilecon(path, scontext) < 0) {
59 bb_perror_msg("warning: failed to change context of %s to %s", path, scontext);
64 freecon(scontext);
85 security_context_t scontext; local
112 &gid_str, &mode_str, &uid_str USE_SELINUX(, &scontext));
124 setfscreatecon_or_die(scontext);
H A Did.c48 security_context_t scontext; local
92 if (getcon(&scontext)) {
95 printf("%s\n", scontext);
H A Dstat.c122 USE_SELINUX(, security_context_t scontext))
161 printf(scontext);
172 USE_SELINUX(, security_context_t scontext))
276 printf(pformat, scontext);
286 USE_SELINUX(, security_context_t scontext)),
287 void const *data USE_SELINUX(, security_context_t scontext) )
327 print_func(dest, n_alloc, *p, filename, data USE_SELINUX(,scontext));
342 security_context_t scontext = NULL; local
346 ? lgetfilecon(filename, &scontext)
347 : getfilecon(filename, &scontext)
120 print_statfs(char *pformat, const size_t buf_len, const char m, const char *const filename, void const *data USE_SELINUX(, security_context_t scontext)) argument
170 print_stat(char *pformat, const size_t buf_len, const char m, const char *const filename, void const *data USE_SELINUX(, security_context_t scontext)) argument
284 print_it(char const *masterformat, char const *filename, void (*print_func) (char *, size_t, char, char const *, void const * USE_SELINUX(, security_context_t scontext)), void const *data USE_SELINUX(, security_context_t scontext) ) argument
451 security_context_t scontext = NULL; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/security/selinux/ss/
H A Dmls.h28 void mls_sid_to_context(struct context *context, char **scontext);
32 char **scontext,
43 int mls_compute_sid(struct context *scontext,
H A Dmls.c81 * the MLS fields of `context' into the string `*scontext'.
82 * Update `*scontext' to point to the end of the MLS fields.
85 char **scontext)
94 scontextp = *scontext;
158 *scontext = scontextp;
225 * the string `*scontext'. Update `*scontext' to
241 char **scontext,
255 *scontext += strlen(*scontext)
84 mls_sid_to_context(struct context *context, char **scontext) argument
240 mls_context_to_sid(char oldc, char **scontext, struct context *context, struct sidtab *s, u32 def_sid) argument
508 mls_compute_sid(struct context *scontext, struct context *tcontext, u16 tclass, u32 specified, struct context *newcontext) argument
[all...]
H A Dservices.c90 static int context_struct_to_string(struct context *context, char **scontext,
99 * only. For these rules, scontext is the context before the transition,
104 static int constraint_expr_eval(struct context *scontext, argument
138 val1 = scontext->user;
142 val1 = scontext->type;
146 val1 = scontext->role;
170 l1 = &(scontext->range.level[0]);
174 l1 = &(scontext->range.level[0]);
178 l1 = &(scontext->range.level[1]);
182 l1 = &(scontext
282 context_struct_compute_av(struct context *scontext, struct context *tcontext, u16 tclass, u32 requested, struct av_decision *avd) argument
513 struct context *scontext = NULL, *tcontext = NULL; local
556 context_struct_to_string(struct context *context, char **scontext, u32 *scontext_len) argument
613 security_sid_to_context(u32 sid, char **scontext, u32 *scontext_len) argument
656 security_context_to_sid_core(char *scontext, u32 scontext_len, u32 *sid, u32 def_sid) argument
782 security_context_to_sid(char *scontext, u32 scontext_len, u32 *sid) argument
805 security_context_to_sid_default(char *scontext, u32 scontext_len, u32 *sid, u32 def_sid) argument
811 compute_sid_handle_invalid_context( struct context *scontext, struct context *tcontext, u16 tclass, struct context *newcontext) argument
847 struct context *scontext = NULL, *tcontext = NULL, newcontext; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/security/selinux/include/
H A Dsecurity.h65 int security_sid_to_context(u32 sid, char **scontext,
68 int security_context_to_sid(char *scontext, u32 scontext_len,
71 int security_context_to_sid_default(char *scontext, u32 scontext_len, u32 *out_sid, u32 def_sid);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/misc/
H A Dauerswald.c259 auerscon_t scontext; /* service context */ member in struct:__anon7132
1168 pauerchar_t ccp = ((pauerchar_t)((char *)(scp)-(unsigned long)(&((pauerchar_t)0)->scontext)));
1183 ccp = ((pauerchar_t)((char *)(scp)-(unsigned long)(&((pauerchar_t)0)->scontext)));
1390 ccp->scontext.id = AUH_UNASSIGNED;
1391 ccp->scontext.dispatch = auerchar_ctrlread_dispatch;
1392 ccp->scontext.disconnect = auerchar_disconnect;
1456 && (ccp->scontext.id != AUH_UNASSIGNED)
1464 u = (ccp->scontext.id != AUH_UNASSIGNED);
1471 if (ccp->scontext.id == AUH_UNASSIGNED) {
1500 auerswald_removeservice (cp, &ccp->scontext);
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/security/selinux/
H A Davc.c202 char *scontext; local
205 rc = security_sid_to_context(ssid, &scontext, &scontext_len);
209 audit_log_format(ab, "scontext=%s", scontext);
210 kfree(scontext);
213 rc = security_sid_to_context(tsid, &scontext, &scontext_len);
217 audit_log_format(ab, " tcontext=%s", scontext);
218 kfree(scontext);
H A Dhooks.c3645 char *scontext; local
3663 err = security_sid_to_context(peer_sid, &scontext, &scontext_len);
3673 if (copy_to_user(optval, scontext, scontext_len))
3680 kfree(scontext);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/include/
H A Dlibbb.h785 extern void setfscreatecon_or_die(security_context_t scontext);

Completed in 152 milliseconds