Searched refs:scontext (Results 1 – 9 of 9) sorted by relevance
/coreutils/src/ |
D | mkfifo.c | 81 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()
|
D | selinux.c | 116 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()
|
D | mknod.c | 98 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()
|
D | mkdir.c | 195 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()
|
D | install.c | 326 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()
|
D | cp.c | 979 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()
|
D | stat.c | 837 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()
|
D | ls.c | 214 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/ |
D | NEWS | 3797 * ls: contrary to Fedora version, does not accept --lcontext and --scontext
|