Home
last modified time | relevance | path

Searched refs:scontext (Results 1 – 9 of 9) sorted by relevance

/coreutils/src/
Dmkfifo.c81 char const *scontext = nullptr; in main() local
103 scontext = optarg; in main()
108 scontext = optarg; in main()
137 if (scontext) in main()
141 ret = smack_set_label_for_self (scontext); in main()
143 ret = setfscreatecon (scontext); in main()
148 quote (scontext)); in main()
Dselinux.c116 context_t scontext = 0, tcontext = 0; in defaultcon() local
143 if (!(scontext = context_new (scon))) in defaultcon()
148 if (!(contype = context_type_get (scontext))) in defaultcon()
159 context_free (scontext); in defaultcon()
184 context_t scontext = 0, tcontext = 0; in restorecon_private() local
231 if (!(scontext = context_new (scon))) in restorecon_private()
248 if (!(contype = context_type_get (scontext))) in restorecon_private()
264 context_free (scontext); in restorecon_private()
Dmknod.c98 char const *scontext = nullptr; in main() local
120 scontext = optarg; in main()
125 scontext = optarg; in main()
193 if (scontext) in main()
197 ret = smack_set_label_for_self (scontext); in main()
199 ret = setfscreatecon (scontext); in main()
204 quote (scontext)); in main()
Dmkdir.c195 char const *scontext = nullptr; in main() local
229 scontext = optarg; in main()
234 scontext = optarg; in main()
266 if (scontext) in main()
270 ret = smack_set_label_for_self (scontext); in main()
272 ret = setfscreatecon (scontext); in main()
277 quote (scontext)); in main()
Dinstall.c326 char *scontext = nullptr; in setdefaultfilecon() local
339 if (selabel_lookup (hnd, &scontext, file, st.st_mode) != 0) in setdefaultfilecon()
347 if (lsetfilecon (file, scontext) < 0 && errno != ENOTSUP) in setdefaultfilecon()
350 quotef_n (0, file), quote_n (1, scontext)); in setdefaultfilecon()
352 freecon (scontext); in setdefaultfilecon()
790 char const *scontext = nullptr; in main() local
897 scontext = optarg; in main()
929 if (x.preserve_security_context && (x.set_security_context || scontext)) in main()
933 if (scontext && setfscreatecon (scontext) < 0) in main()
936 quote (scontext)); in main()
Dcp.c979 char const *scontext = nullptr; in main() local
1173 scontext = optarg; in main()
1252 if ((x.set_security_context || scontext) in main()
1256 if (x.preserve_security_context && (x.set_security_context || scontext)) in main()
1271 if (scontext && setfscreatecon (scontext) < 0) in main()
1274 quote (scontext)); in main()
Dstat.c837 char *scontext; in out_file_context() local
841 ? getfilecon (filename, &scontext) in out_file_context()
842 : lgetfilecon (filename, &scontext)) < 0) in out_file_context()
846 scontext = nullptr; in out_file_context()
850 printf (pformat, (scontext ? scontext : "?")); in out_file_context()
851 if (scontext) in out_file_context()
852 freecon (scontext); in out_file_context()
Dls.c214 char *scontext; member
3248 if (f->scontext != UNKNOWN_SECURITY_CONTEXT) in free_ent()
3251 free (f->scontext); in free_ent()
3253 freecon (f->scontext); in free_ent()
3309 &f->scontext); in getfilecon_cache()
3313 ? getfilecon (file, &f->scontext) in getfilecon_cache()
3314 : lgetfilecon (file, &f->scontext)); in getfilecon_cache()
3517 f->scontext = UNKNOWN_SECURITY_CONTEXT; in gobble_file()
3545 have_scontext = ! STREQ ("_", f->scontext); in gobble_file()
3547 have_scontext = ! STREQ ("unlabeled", f->scontext); in gobble_file()
[all …]
/coreutils/
DNEWS3797 * ls: contrary to Fedora version, does not accept --lcontext and --scontext