OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:fcontext
(Results
1 - 8
of
8
) sorted by null
/external/selinux/libsemanage/include/semanage/
fcontext_record.h
18
extern int semanage_fcontext_compare(const semanage_fcontext_t *
fcontext
,
21
extern int semanage_fcontext_compare2(const semanage_fcontext_t *
fcontext
,
30
const semanage_fcontext_t *
fcontext
,
37
fcontext
);
40
semanage_fcontext_t *
fcontext
,
53
extern int semanage_fcontext_get_type(const semanage_fcontext_t *
fcontext
);
57
extern void semanage_fcontext_set_type(semanage_fcontext_t *
fcontext
,
62
fcontext
);
65
semanage_fcontext_t *
fcontext
,
73
const semanage_fcontext_t *
fcontext
,
[
all
...]
/external/selinux/libsemanage/src/
fcontext_record.c
63
const semanage_fcontext_t *
fcontext
,
67
if (semanage_fcontext_key_create(handle,
fcontext
->expr,
68
fcontext
->type, key_ptr) < 0) {
70
"file context %s (%s)",
fcontext
->expr,
71
semanage_fcontext_get_type_str(
fcontext
->type));
88
int semanage_fcontext_compare(const semanage_fcontext_t *
fcontext
,
92
int rv = strcmp(
fcontext
->expr, key->expr);
96
if (
fcontext
->type < key->type)
99
else if (key->type <
fcontext
->type)
109
int semanage_fcontext_compare2(const semanage_fcontext_t *
fcontext
,
[
all
...]
fcontexts_file.c
47
semanage_fcontext_t *
fcontext
, FILE * str)
52
const char *expr = semanage_fcontext_get_expr(
fcontext
);
53
int type = semanage_fcontext_get_type(
fcontext
);
56
semanage_context_t *con = semanage_fcontext_get_con(
fcontext
);
82
parse_info_t * info, semanage_fcontext_t *
fcontext
)
96
if (semanage_fcontext_set_expr(handle,
fcontext
, str) < 0)
107
semanage_fcontext_set_type(
fcontext
, SEMANAGE_FCONTEXT_SOCK);
109
semanage_fcontext_set_type(
fcontext
, SEMANAGE_FCONTEXT_PIPE);
111
semanage_fcontext_set_type(
fcontext
, SEMANAGE_FCONTEXT_BLOCK);
113
semanage_fcontext_set_type(
fcontext
, SEMANAGE_FCONTEXT_LINK)
[
all
...]
genhomedircon.c
238
static int fcontext_matches(const semanage_fcontext_t *
fcontext
, void *varg)
240
const char *oexpr = semanage_fcontext_get_expr(
fcontext
);
248
type = semanage_fcontext_get_type(
fcontext
);
[
all
...]
/external/selinux/libsemanage/example/
test_fcontext.c
12
semanage_fcontext_t *
fcontext
;
local
45
if (semanage_fcontext_create(sh, &
fcontext
) < 0) {
49
semanage_fcontext_set_expr(sh,
fcontext
, argv[2]);
56
if (semanage_fcontext_set_con(sh,
fcontext
, con) < 0) {
61
semanage_fcontext_set_type(
fcontext
, SEMANAGE_FCONTEXT_REG);
63
if(semanage_fcontext_modify_local(sh, k,
fcontext
) < 0) {
68
semanage_fcontext_free(
fcontext
);
/external/selinux/libselinux/src/
matchpathcon.c
493
char *
fcontext
= NULL;
local
518
if (selabel_lookup_raw(hnd, &
fcontext
, path, mode) != 0) {
530
rc = (selinux_file_context_cmp(
fcontext
, con) == 0);
534
freecon(
fcontext
);
/external/selinux/gui/
fcontextPage.py
72
semanagePage.__init__(self, xml, "
fcontext
", _("File Labeling"))
125
self.
fcontext
= seobject.fcontextRecords()
127
fcon_dict = self.
fcontext
.get_all(self.local)
177
(rc, out) = getstatusoutput("semanage
fcontext
-d -f '%s' '%s'" % (seobject.file_type_str_to_option[ftype], fspec))
195
(rc, out) = getstatusoutput("semanage
fcontext
-a -t %s -r %s -f '%s' '%s'" % (type, mls, seobject.file_type_str_to_option[ftype], fspec))
214
(rc, out) = getstatusoutput("semanage
fcontext
-m -t %s -r %s -f '%s' '%s'" % (type, mls, seobject.file_type_str_to_option[ftype], fspec))
/external/selinux/python/semanage/
seobject.py
[
all
...]
Completed in 131 milliseconds