Home
last modified time | relevance | path

Searched refs:seuser (Results 1 – 25 of 123) sorted by relevance

12345

/external/selinux/libsemanage/src/
Dseuser_record.c65 const semanage_seuser_t * seuser, in hidden_def()
69 if (semanage_seuser_key_create(handle, seuser->name, key_ptr) < 0) in hidden_def()
89 int semanage_seuser_compare(const semanage_seuser_t * seuser, in hidden_def()
93 return strcmp(seuser->name, key->name); in hidden_def()
98 int semanage_seuser_compare2(const semanage_seuser_t * seuser, in hidden_def()
102 return strcmp(seuser->name, seuser2->name); in hidden_def()
107 static int semanage_seuser_compare2_qsort(const semanage_seuser_t ** seuser, in hidden_def()
111 return strcmp((*seuser)->name, (*seuser2)->name); in hidden_def()
115 const char *semanage_seuser_get_name(const semanage_seuser_t * seuser) in semanage_seuser_get_name() argument
118 return seuser->name; in semanage_seuser_get_name()
[all …]
Dseusers_file.c23 semanage_seuser_t * seuser, FILE * str) in seuser_print() argument
26 const char *name = semanage_seuser_get_name(seuser); in seuser_print()
27 const char *sename = semanage_seuser_get_sename(seuser); in seuser_print()
28 const char *mls = semanage_seuser_get_mlsrange(seuser); in seuser_print()
45 parse_info_t * info, semanage_seuser_t * seuser) in seuser_parse() argument
58 if (semanage_seuser_set_name(handle, seuser, str) < 0) in seuser_parse()
73 if (semanage_seuser_set_sename(handle, seuser, str) < 0) in seuser_parse()
89 if (semanage_seuser_set_mlsrange(handle, seuser, str) < 0) in seuser_parse()
Dseusers_local.c59 const semanage_seuser_t * seuser, in semanage_seuser_audit() argument
80 if (seuser) { in semanage_seuser_audit()
81 name = semanage_seuser_get_name(seuser); in semanage_seuser_audit()
82 sename = semanage_seuser_get_sename(seuser); in semanage_seuser_audit()
83 mls = semanage_seuser_get_mlsrange(seuser); in semanage_seuser_audit()
179 semanage_seuser_t *seuser = NULL; in semanage_seuser_del_local() local
182 semanage_seuser_query(handle, key, &seuser); in semanage_seuser_del_local()
183 if (semanage_seuser_audit(handle, NULL, seuser, AUDIT_ROLE_REMOVE, rc == 0) < 0) in semanage_seuser_del_local()
185 if (seuser) in semanage_seuser_del_local()
186 semanage_seuser_free(seuser); in semanage_seuser_del_local()
[all …]
Dpywrap-test.py15 -S for add seuser (warning this will write!)\n\
180 for seuser in slist:
182 print("seseuser reference: %s" % seuser)
183 print("seuser name: %s" % semanage.semanage_seuser_get_name(seuser))
184 print(" seuser mls range: %s" % semanage.semanage_seuser_get_mlsrange(seuser))
185 print(" seuser sename: %s" % semanage.semanage_seuser_get_sename(seuser))
186 semanage.semanage_seuser_free(seuser)
480 (status, seuser) = semanage.semanage_seuser_create(sh)
486 status = semanage.semanage_seuser_set_name(sh, seuser, "testPySEUser")
490 print("SEUser name set: %s" % semanage.semanage_seuser_get_name(seuser))
[all …]
/external/selinux/libsemanage/include/semanage/
Dseuser_record.h19 const semanage_seuser_t * seuser,
24 extern int semanage_seuser_compare(const semanage_seuser_t * seuser,
27 extern int semanage_seuser_compare2(const semanage_seuser_t * seuser,
31 extern const char *semanage_seuser_get_name(const semanage_seuser_t * seuser);
34 semanage_seuser_t * seuser,
38 extern const char *semanage_seuser_get_sename(const semanage_seuser_t * seuser);
41 semanage_seuser_t * seuser,
46 seuser);
49 semanage_seuser_t * seuser,
57 const semanage_seuser_t * seuser,
[all …]
/external/selinux/libselinux/src/
Dseusers.c20 char *luser = NULL, *seuser = NULL, *level = NULL; in process_seusers() local
54 seuser = strdup(start); in process_seusers()
55 if (!seuser) in process_seusers()
58 if (!strcmp(seuser, "")) in process_seusers()
80 *seuserp = seuser; in process_seusers()
86 free(seuser); in process_seusers()
179 char *seuser = NULL; in getseuserbyname() local
195 rc = process_seusers(buffer, &username, &seuser, &level, in getseuserbyname()
211 groupseuser = seuser; in getseuserbyname()
216 defaultseuser = seuser; in getseuserbyname()
[all …]
/external/selinux/libselinux/utils/
Dgetseuser.c10 char *seuser = NULL, *level = NULL; in main() local
19 rc = getseuserbyname(argv[1], &seuser, &level); in main()
25 printf("seuser: %s, level %s\n", seuser, level); in main()
26 n = get_ordered_context_list_with_level(seuser, level, argv[2], in main()
34 free(seuser); in main()
Dgetdefaultcon.c23 char *user = NULL, *level = NULL, *role=NULL, *seuser=NULL, *dlevel=NULL; in main() local
68 if ((ret = getseuser(user, service, &seuser, &dlevel)) == 0) { in main()
71 ret=get_default_context_with_rolelevel(seuser, role, level,cur_context,&usercon); in main()
73 ret=get_default_context_with_level(seuser, level, cur_context,&usercon); in main()
79 …printf("%s: %s from %s %s %s %s -> %s\n", argv[0], user, cur_context, seuser, role, level, usercon… in main()
86 free(seuser); in main()
/external/selinux/gui/
DloginsPage.py116 seuser = store.get_value(iter, 1)
119 while iter != None and liststore.get_value(iter, 0) != seuser:
155 seuser = list_model.get_value(iter, 0)
157 (rc, out) = getstatusoutput("semanage login -a -s %s -r %s %s" % (seuser, serange, target))
165 self.store.set_value(iter, 1, seuser)
175 seuser = list_model.get_value(iter, 0)
177 (rc, out) = getstatusoutput("semanage login -m -s %s -r %s %s" % (seuser, serange, target))
185 self.store.set_value(iter, 1, seuser)
/external/selinux/python/semanage/
Dseobject.py2376 def createcon(self, target, seuser="system_u"): argument
2380 if seuser == "":
2381 seuser = "system_u"
2383 rc = semanage_context_set_user(self.sh, con, seuser)
2409 def __add(self, target, type, ftype="", serange="", seuser="system_u"): argument
2445 con = self.createcon(target, seuser)
2470 if not seuser:
2471 seuser = "system_u"
2473 …audit.audit_encode_nv_string("tglob", target, 0), ftype_to_audit[ftype], seuser, "object_r", type,…
2475 def add(self, target, type, ftype="", serange="", seuser="system_u"): argument
[all …]
Dsemanage190 OBJECT.add(args.login, args.seuser, args.range)
192 OBJECT.modify(args.login, args.seuser, args.range)
326 OBJECT.add(args.file_spec, args.type, args.ftype, args.range, args.seuser)
331 OBJECT.modify(args.file_spec, args.type, args.ftype, args.range, args.seuser)
/external/selinux/libselinux/include/selinux/
Dselinux.h662 extern int getseuserbyname(const char *linuxuser, char **seuser, char **level);
/external/selinux/python/sepolicy/sepolicy/
Dgui.py1753 seuser = self.combo_get_active_text(combo)
1756 if seuser == u['name']:
1934 seuser = self.combo_get_active_text(self.login_seuser_combobox)
1945 …self.cur_dict["login"][name] = {"action": "-m", "range": mls_range, "seuser": seuser, "oldrange": …
1948 self.cur_dict["login"][name] = {"action": "-a", "range": mls_range, "seuser": seuser}
1951 self.liststore.set_value(iter, 1, seuser)
2108 seuser = login_dict[login]["seuser"]
2111 self.login_delete_liststore.set_value(iter, 1, seuser)
2296 seuser = self.cur_dict["login"][login]["seuser"]
2297 self.update_treestore.set_value(niter, 1, (_("SELinux User: %s")) % seuser)
/external/selinux/libsepol/src/
Dmodule_to_cil.c3080 char *seuser = NULL; in seusers_to_cil() local
3101 matched = tokenize(tmp, ':', 3, &user, &seuser, &level); in seusers_to_cil()
3110 cil_printf("(selinuxuserdefault %s (", seuser); in seusers_to_cil()
3112 cil_printf("(selinuxuser %s %s (", user, seuser); in seusers_to_cil()
3127 free(seuser); in seusers_to_cil()
3130 user = seuser = level = NULL; in seusers_to_cil()
3142 free(seuser); in seusers_to_cil()
/external/selinux/policycoreutils/po/
Dbn_IN.po256 msgid "Requires seuser or serange"
257 msgstr "seuser অথবা serange আবশ্যক"
266 msgid "Could not query seuser for %s"
267 msgstr "%s'র ক্ষেত্রে seuser কোয়েরি করা যায়নি"
864 msgid "Requires setype, serange or seuser"
865 msgstr "setype, serange অথবা seuser আবশ্যক"
Dsr.po258 msgid "Requires seuser or serange"
259 msgstr "Захтева seuser или serange"
268 msgid "Could not query seuser for %s"
269 msgstr "Не могу да испитам seuser-а за %s"
860 msgid "Requires setype, serange or seuser"
861 msgstr "Захтева setype, serange или seuser"
Dhi.po255 msgid "Requires seuser or serange"
256 msgstr "seuser या serange जरूरी"
265 msgid "Could not query seuser for %s"
266 msgstr "seuser को %s के लिये प्रश्न नहीं कर सका"
858 msgid "Requires setype, serange or seuser"
859 msgstr "सेटटाइप जरूरी, serange या seuser"
Dbg.po256 msgid "Requires seuser or serange"
257 msgstr "Изисква seuser или serange"
266 msgid "Could not query seuser for %s"
267 msgstr "Не можах да запитам seuser за %s"
862 msgid "Requires setype, serange or seuser"
863 msgstr "Изисква setype, serange или seuser"
Dmai.po254 msgid "Requires seuser or serange"
255 msgstr "seuser अथवा serange जरूरी"
264 msgid "Could not query seuser for %s"
265 msgstr "seuser केँ %s क लेल प्रश्न नहि कए सकल"
856 msgid "Requires setype, serange or seuser"
857 msgstr "सेटटाइप जरूरी, serange या seuser"
Dmk.po257 msgid "Requires seuser or serange"
258 msgstr "Побарува seuser или serange"
267 msgid "Could not query seuser for %s"
268 msgstr "Не можев да пребарувам во seuser за %s"
862 msgid "Requires setype, serange or seuser"
863 msgstr "Побарува setype, serange или seuser"
Dte.po256 msgid "Requires seuser or serange"
257 msgstr "seuser లేదా serange అవసరము"
266 msgid "Could not query seuser for %s"
267 msgstr "%s కొరకు seuser ను క్వరీ చేయలేకపోయింది"
859 msgid "Requires setype, serange or seuser"
860 msgstr "setype, serange లేదా seuser అవసరము"
Dar.po258 msgid "Requires seuser or serange"
259 msgstr "بحاجة إلى seuser أو serange"
268 msgid "Could not query seuser for %s"
269 msgstr "لا يمكن استعلام seuser لـ %s"
860 msgid "Requires setype, serange or seuser"
861 msgstr "يتطلب setype، serange أو seuser"
Dko.po255 msgid "Requires seuser or serange"
256 msgstr "seuser 또는 serange 필요"
265 msgid "Could not query seuser for %s"
266 msgstr "%s에 대한 seuser를 질의할 수 없습니다"
859 msgid "Requires setype, serange or seuser"
860 msgstr "setype, serange 또는 seuser 필요"
Dzh_CN.po257 msgid "Requires seuser or serange"
258 msgstr "需要 seuser 或 serange"
267 msgid "Could not query seuser for %s"
268 msgstr "无法为 %s 查询 seuser"
859 msgid "Requires setype, serange or seuser"
860 msgstr "需要 setype、serange 或 seuser"
Dsr@latin.po259 msgid "Requires seuser or serange"
260 msgstr "Zahteva seuser ili serange"
269 msgid "Could not query seuser for %s"
270 msgstr "Ne mogu da ispitam seuser-a za %s"
861 msgid "Requires setype, serange or seuser"
862 msgstr "Zahteva setype, serange ili seuser"

12345