Home
last modified time | relevance | path

Searched refs:fcontext (Results 1 – 25 of 118) 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.c238 static int fcontext_matches(const semanage_fcontext_t *fcontext, void *varg) in fcontext_matches() argument
240 const char *oexpr = semanage_fcontext_get_expr(fcontext); in fcontext_matches()
248 type = semanage_fcontext_get_type(fcontext); in fcontext_matches()
/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.py1895 (rc, fcontext) = semanage_fcontext_create(self.sh)
1899 rc = semanage_fcontext_set_expr(self.sh, fcontext, target)
1911 rc = semanage_fcontext_set_con(self.sh, fcontext, con)
1915 semanage_fcontext_set_type(fcontext, file_types[ftype])
1917 rc = semanage_fcontext_modify_local(self.sh, k, fcontext)
1924 semanage_fcontext_free(fcontext)
1957 (rc, fcontext) = semanage_fcontext_query_local(self.sh, k)
1960 (rc, fcontext) = semanage_fcontext_query(self.sh, k)
1965 con = semanage_fcontext_get_con(fcontext)
1978 rc = semanage_fcontext_set_con(self.sh, fcontext, con)
[all …]
/external/selinux/gui/
DfcontextPage.py128 self.fcontext = seobject.fcontextRecords()
130 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/
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"
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"
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"
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"
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"
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"
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"
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"
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"
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"
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"
Del.po901 msgid "SELinux fcontext"
902 msgstr "SELinux fcontext"
911 "SELinux Distribution fcontext Equivalence \n"
917 "SELinux Local fcontext Equivalence \n"
4244 msgstr "SELinux fcontext"
Dpt_BR.po923 msgid "SELinux fcontext"
924 msgstr "fcontext do SELinux"
933 "SELinux Distribution fcontext Equivalence \n"
936 "SELinux Distribution fcontext Equivalence \n"
941 "SELinux Local fcontext Equivalence \n"
944 "SELinux Local fcontext Equivalence \n"
5189 "SELinux Local fcontext Equivalence \n"

12345