Home
last modified time | relevance | path

Searched refs:fcontext (Results 1 – 25 of 120) sorted by relevance

12345

/external/selinux/libsemanage/src/
Dfcontext_record.c63 const semanage_fcontext_t * fcontext, in hidden_def()
67 if (semanage_fcontext_key_create(handle, fcontext->expr, in hidden_def()
68 fcontext->type, key_ptr) < 0) { in hidden_def()
70 "file context %s (%s)", fcontext->expr, in hidden_def()
71 semanage_fcontext_get_type_str(fcontext->type)); in hidden_def()
88 int semanage_fcontext_compare(const semanage_fcontext_t * fcontext, in hidden_def()
92 int rv = strcmp(fcontext->expr, key->expr); in hidden_def()
96 if (fcontext->type < key->type) in hidden_def()
99 else if (key->type < fcontext->type) in hidden_def()
109 int semanage_fcontext_compare2(const semanage_fcontext_t * fcontext, in hidden_def()
[all …]
Dfcontexts_file.c47 semanage_fcontext_t * fcontext, FILE * str) in fcontext_print() argument
52 const char *expr = semanage_fcontext_get_expr(fcontext); in fcontext_print()
53 int type = semanage_fcontext_get_type(fcontext); in fcontext_print()
56 semanage_context_t *con = semanage_fcontext_get_con(fcontext); in fcontext_print()
82 parse_info_t * info, semanage_fcontext_t * fcontext) in fcontext_parse() argument
96 if (semanage_fcontext_set_expr(handle, fcontext, str) < 0) in fcontext_parse()
107 semanage_fcontext_set_type(fcontext, SEMANAGE_FCONTEXT_SOCK); in fcontext_parse()
109 semanage_fcontext_set_type(fcontext, SEMANAGE_FCONTEXT_PIPE); in fcontext_parse()
111 semanage_fcontext_set_type(fcontext, SEMANAGE_FCONTEXT_BLOCK); in fcontext_parse()
113 semanage_fcontext_set_type(fcontext, SEMANAGE_FCONTEXT_LINK); in fcontext_parse()
[all …]
Dgenhomedircon.c240 static int fcontext_matches(const semanage_fcontext_t *fcontext, void *varg) in fcontext_matches() argument
242 const char *oexpr = semanage_fcontext_get_expr(fcontext); in fcontext_matches()
250 type = semanage_fcontext_get_type(fcontext); in fcontext_matches()
/external/selinux/libsemanage/tests/
Dtest_fcontext.c192 semanage_fcontext_t *fcontext; in get_fcontext_new() local
194 CU_ASSERT_FATAL(semanage_fcontext_create(sh, &fcontext) >= 0); in get_fcontext_new()
196 return fcontext; in get_fcontext_new()
202 semanage_fcontext_t *fcontext; in get_fcontext_nth() local
211 fcontext = records[idx]; in get_fcontext_nth()
217 return fcontext; in get_fcontext_nth()
223 semanage_fcontext_t *fcontext; in get_fcontext_key_nth() local
228 fcontext = get_fcontext_nth(idx); in get_fcontext_key_nth()
230 CU_ASSERT_FATAL(semanage_fcontext_key_extract(sh, fcontext, &key) >= 0); in get_fcontext_key_nth()
238 semanage_fcontext_t *fcontext; in add_local_fcontext() local
[all …]
Dlibsemanage-tests.c73 DECLARE_SUITE(fcontext); in do_tests()
/external/selinux/libsemanage/include/semanage/
Dfcontext_record.h18 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/example/
Dtest_fcontext.c12 semanage_fcontext_t *fcontext; in main() local
45 if (semanage_fcontext_create(sh, &fcontext) < 0) { in main()
49 semanage_fcontext_set_expr(sh, fcontext, argv[2]); in main()
56 if (semanage_fcontext_set_con(sh, fcontext, con) < 0) { in main()
61 semanage_fcontext_set_type(fcontext, SEMANAGE_FCONTEXT_REG); in main()
63 if(semanage_fcontext_modify_local(sh, k, fcontext) < 0) { in main()
68 semanage_fcontext_free(fcontext); in main()
/external/selinux/libselinux/src/
Dmatchpathcon.c493 char * fcontext = NULL; in selinux_file_context_verify() local
518 if (selabel_lookup_raw(hnd, &fcontext, path, mode) != 0) { in selinux_file_context_verify()
530 rc = (selinux_file_context_cmp(fcontext, con) == 0); in selinux_file_context_verify()
534 freecon(fcontext); in selinux_file_context_verify()
/external/selinux/python/semanage/
Dseobject.py2439 (rc, fcontext) = semanage_fcontext_create(self.sh)
2443 rc = semanage_fcontext_set_expr(self.sh, fcontext, target)
2455 rc = semanage_fcontext_set_con(self.sh, fcontext, con)
2459 semanage_fcontext_set_type(fcontext, file_types[ftype])
2461 rc = semanage_fcontext_modify_local(self.sh, k, fcontext)
2468 semanage_fcontext_free(fcontext)
2503 (rc, fcontext) = semanage_fcontext_query_local(self.sh, k)
2506 (rc, fcontext) = semanage_fcontext_query(self.sh, k)
2511 con = semanage_fcontext_get_con(fcontext)
2524 rc = semanage_fcontext_set_con(self.sh, fcontext, con)
[all …]
/external/selinux/gui/
DfcontextPage.py125 self.fcontext = seobject.fcontextRecords()
127 fcon_dict = self.fcontext.get_all(self.local)
/external/selinux/python/sepolicy/sepolicy/help/
Dfile_equiv.txt13 # semanage fcontext -a -e /var/www /srv/www
/external/selinux/policycoreutils/po/
Dbn_IN.po911 msgid "SELinux fcontext"
912 msgstr "SELinux fcontext"
921 "SELinux Distribution fcontext Equivalence \n"
924 "SELinux Distribution fcontext Equivalence \n"
929 "SELinux Local fcontext Equivalence \n"
932 "SELinux Local fcontext Equivalence \n"
5042 "SELinux Local fcontext Equivalence \n"
Dhi.po904 msgid "SELinux fcontext"
905 msgstr "SELinux fcontext"
914 "SELinux Distribution fcontext Equivalence \n"
917 "SELinux वितरण fcontext समरूप \n"
922 "SELinux Local fcontext Equivalence \n"
925 "SELinux स्थानीय fcontext समरूप \n"
5169 "SELinux स्थानीय fcontext समरूप \n"
Dte.po905 msgid "SELinux fcontext"
906 msgstr "SELinux fcontext"
915 "SELinux Distribution fcontext Equivalence \n"
918 "SELinux పంపిణీ fcontext సమానత \n"
923 "SELinux Local fcontext Equivalence \n"
926 "SELinux స్థానిక fcontext సమానత \n"
5123 "SELinux స్థానిక fcontext సమానత \n"
Dko.po905 msgid "SELinux fcontext"
906 msgstr "SELinux fcontext"
915 "SELinux Distribution fcontext Equivalence \n"
918 "SELinux 배포판 fcontext 해당 \n"
923 "SELinux Local fcontext Equivalence \n"
926 "SELinux 로컬 fcontext 해당 \n"
5235 "SELinux 로컬 fcontext 해당 \n"
Dzh_CN.po905 msgid "SELinux fcontext"
906 msgstr "SELinux fcontext"
915 "SELinux Distribution fcontext Equivalence \n"
918 "SELinux Distribution fcontext Equivalence\n"
923 "SELinux Local fcontext Equivalence \n"
926 "SELinux Local fcontext Equivalence\n"
5037 "SELinux Local fcontext Equivalence\n"
Dzh_TW.po904 msgid "SELinux fcontext"
905 msgstr "SELinux fcontext"
914 "SELinux Distribution fcontext Equivalence \n"
917 "SELinux Distribution fcontext Equivalence \n"
922 "SELinux Local fcontext Equivalence \n"
925 "SELinux Local fcontext Equivalence \n"
5070 "SELinux Local fcontext Equivalence \n"
Dbg.po909 msgid "SELinux fcontext"
919 "SELinux Distribution fcontext Equivalence \n"
922 "Дистрибуционна SELinux fcontext еквивалентност \n"
927 "SELinux Local fcontext Equivalence \n"
930 "Локална SELinux fcontext еквивалентност \n"
5040 "Локална SELinux fcontext еквивалентност \n"
Dja.po923 msgid "SELinux fcontext"
924 msgstr "SELinux fcontext"
933 "SELinux Distribution fcontext Equivalence \n"
936 "SELinux ディストリビューション fcontext の等価\n"
941 "SELinux Local fcontext Equivalence \n"
944 " SELinux ローカル fcontext の等価\n"
Dpa.po907 msgid "SELinux fcontext"
908 msgstr "SELinux fcontext"
917 "SELinux Distribution fcontext Equivalence \n"
920 "SELinux ਡਿਸਟਰੀਬਿਊਸ਼ਨ fcontext ਬਦਲਾਅ \n"
925 "SELinux Local fcontext Equivalence \n"
928 "SELinux ਲੋਕਲ fcontext ਬਦਲਾਅ \n"
Dkn.po914 msgid "SELinux fcontext"
915 msgstr "SELinux fcontext"
924 "SELinux Distribution fcontext Equivalence \n"
927 "SELinux ವಿತರಣೆ fcontext ಗೆ ಸಮನಾದ\n"
932 "SELinux Local fcontext Equivalence \n"
935 "SELinux ಸ್ಥಳೀಯ fcontext ಗೆ ಸಮನಾದ\n"
Das.po916 msgid "SELinux fcontext"
917 msgstr "SELinux fcontext"
926 "SELinux Distribution fcontext Equivalence \n"
929 "SELinux Distribution fcontext Equivalence \n"
934 "SELinux Local fcontext Equivalence \n"
937 "SELinux Local fcontext Equivalence \n"
Dml.po906 msgid "SELinux fcontext"
907 msgstr "SELinux fcontext"
916 "SELinux Distribution fcontext Equivalence \n"
919 "SELinux ഡിസ്ട്രിബ്യൂഷന്‍ fcontext ഇക്ക്വിവാലന്‍സ് \n"
924 "SELinux Local fcontext Equivalence \n"
927 "SELinux ലോക്കല്‍ fcontext ഇക്ക്വിവാലന്‍സ് \n"
Dmr.po914 msgid "SELinux fcontext"
915 msgstr "SELinux fcontext"
924 "SELinux Distribution fcontext Equivalence \n"
927 "SELinux डिस्ट्रिब्युशन fcontext इक्विवॅलेंस \n"
932 "SELinux Local fcontext Equivalence \n"
935 "SELinux लोकल fcontext इक्विवॅलेंस \n"
Dta.po912 msgid "SELinux fcontext"
913 msgstr "SELinux fcontext"
922 "SELinux Distribution fcontext Equivalence \n"
925 "SELinux Distribution fcontext சமானம் \n"
930 "SELinux Local fcontext Equivalence \n"
933 "SELinux Local fcontext சமானம்\n"

12345