Home
last modified time | relevance | path

Searched refs:con (Results 1 – 8 of 8) sorted by relevance

/busybox-1.35.0/selinux/
Druncon.c64 context_t con; in runcon_compute_new_context() local
82 con = context_new(cur_context); in runcon_compute_new_context()
83 if (!con) in runcon_compute_new_context()
85 if (user && context_user_set(con, user)) in runcon_compute_new_context()
87 if (type && context_type_set(con, type)) in runcon_compute_new_context()
89 if (range && context_range_set(con, range)) in runcon_compute_new_context()
91 if (role && context_role_set(con, role)) in runcon_compute_new_context()
94 return con; in runcon_compute_new_context()
125 context_t con; in runcon_main() local
144 con = context_new(context); in runcon_main()
[all …]
Dsestatus.c95 security_context_t con, _con; in display_verbose() local
106 if (getcon(&con) == 0) { in display_verbose()
107 printf(COL_FMT "%s\n", "Current context:", con); in display_verbose()
109 freecon(con); in display_verbose()
112 if (getpidcon(1, &con) == 0) { in display_verbose()
113 printf(COL_FMT "%s\n", "Init context:", con); in display_verbose()
115 freecon(con); in display_verbose()
121 if (pidList[0] > 0 && getpidcon(pidList[0], &con) == 0) { in display_verbose()
122 printf(COL_FMT "%s\n", pc[i], con); in display_verbose()
124 freecon(con); in display_verbose()
[all …]
Dmatchpathcon.c83 security_context_t con; in matchpathcon_main() local
97 rc = lgetfilecon_raw(path, &con); in matchpathcon_main()
99 rc = lgetfilecon(path, &con); in matchpathcon_main()
102 printf("%s has context %s, should be ", path, con); in matchpathcon_main()
104 freecon(con); in matchpathcon_main()
Dsetfiles.c233 static int match(const char *name, struct stat *sb, char **con) in match() argument
315 return matchpathcon_index("/", sb->st_mode, con); in match()
316 return matchpathcon_index(name, sb->st_mode, con); in match()
/busybox-1.35.0/libbb/
Dselinux_common.c15 context_t con = context_new(cur_context); in set_security_context_component() local
16 if (!con) in set_security_context_component()
19 if (user && context_user_set(con, user)) in set_security_context_component()
21 if (type && context_type_set(con, type)) in set_security_context_component()
23 if (range && context_range_set(con, range)) in set_security_context_component()
25 if (role && context_role_set(con, role)) in set_security_context_component()
27 return con; in set_security_context_component()
30 context_free(con); in set_security_context_component()
Dcopy_file.c121 security_context_t con; in copy_file() local
122 if (lgetfilecon(source, &con) >= 0) { in copy_file()
123 if (setfscreatecon(con) < 0) { in copy_file()
124 bb_perror_msg("can't set setfscreatecon %s", con); in copy_file()
125 freecon(con); in copy_file()
330 security_context_t con; in copy_file() local
331 if (getfscreatecon(&con) == -1) { in copy_file()
335 if (con) { in copy_file()
336 if (setfilecon(dest, con) == -1) { in copy_file()
337 bb_perror_msg("setfilecon:%s,%s", dest, con); in copy_file()
[all …]
/busybox-1.35.0/findutils/
Dfind.c959 security_context_t con; in ACTF() local
963 rc = getfilecon(fileName, &con); in ACTF()
965 rc = lgetfilecon(fileName, &con); in ACTF()
969 rc = strcmp(ap->context, con); in ACTF()
970 freecon(con); in ACTF()
/busybox-1.35.0/procps/
Dps.posix18 -f Generate a full listing. (See the STDOUT section for the con-
82 The -o option allows the output format to be specified under user con-