Home
last modified time | relevance | path

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

123456

/external/selinux/libsemanage/src/
Dseuser_record.c60 const semanage_seuser_t * seuser, in hidden_def()
64 if (semanage_seuser_key_create(handle, seuser->name, key_ptr) < 0) in hidden_def()
84 int semanage_seuser_compare(const semanage_seuser_t * seuser, in hidden_def()
88 return strcmp(seuser->name, key->name); in hidden_def()
93 int semanage_seuser_compare2(const semanage_seuser_t * seuser, in hidden_def()
97 return strcmp(seuser->name, seuser2->name); in hidden_def()
102 static int semanage_seuser_compare2_qsort(const semanage_seuser_t ** seuser, in hidden_def()
106 return strcmp((*seuser)->name, (*seuser2)->name); in hidden_def()
110 const char *semanage_seuser_get_name(const semanage_seuser_t * seuser) in semanage_seuser_get_name() argument
113 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.c55 const semanage_seuser_t * seuser, in semanage_seuser_audit() argument
70 if (seuser) { in semanage_seuser_audit()
71 name = semanage_seuser_get_name(seuser); in semanage_seuser_audit()
72 sename = semanage_seuser_get_sename(seuser); in semanage_seuser_audit()
73 mls = semanage_seuser_get_mlsrange(seuser); in semanage_seuser_audit()
174 semanage_seuser_t *seuser = NULL; in semanage_seuser_del_local() local
177 semanage_seuser_query(handle, key, &seuser); in semanage_seuser_del_local()
178 if (semanage_seuser_audit(handle, NULL, seuser, AUDIT_ROLE_REMOVE, rc == 0) < 0) in semanage_seuser_del_local()
180 if (seuser) in semanage_seuser_del_local()
181 semanage_seuser_free(seuser); in semanage_seuser_del_local()
[all …]
Dpywrap-test.py12 -S for add seuser (warning this will write!)\n\
153 for seuser in slist:
154 if self.verbose: print "seseuser reference: ", seuser
155 print "seuser name: ", semanage.semanage_seuser_get_name(seuser)
156 print " seuser mls range: ", semanage.semanage_seuser_get_mlsrange(seuser)
157 print " seuser sename: ", semanage.semanage_seuser_get_sename(seuser)
158 semanage.semanage_seuser_free(seuser)
427 (status, seuser) = semanage.semanage_seuser_create(sh)
432 status = semanage.semanage_seuser_set_name(sh,seuser, "testPySEUser")
435 if self.verbose: print "SEUser name set: ", semanage.semanage_seuser_get_name(seuser)
[all …]
Dgenhomedircon.c553 const char *seuser, const char *home, in write_home_dir_context() argument
557 {.search_for = TEMPLATE_SEUSER,.replace_with = seuser}, in write_home_dir_context()
613 const char *seuser, const char *role_prefix) in write_user_context() argument
618 {.search_for = TEMPLATE_SEUSER,.replace_with = seuser}, in write_user_context()
/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/policycoreutils/gui/
DloginsPage.py113 seuser = store.get_value(iter, 1)
116 while iter != None and liststore.get_value(iter,0) != seuser:
153 seuser = list_model.get_value(iter,0)
155 …(rc, out) = commands.getstatusoutput("semanage login -a -s %s -r %s %s" % (seuser, serange, target…
163 self.store.set_value(iter, 1, seuser)
173 seuser=list_model.get_value(iter,0)
175 …(rc, out) = commands.getstatusoutput("semanage login -m -s %s -r %s %s" % (seuser, serange, target…
183 self.store.set_value(iter, 1, seuser)
/external/selinux/policycoreutils/semanage/
Dseobject.py1756 def createcon(self, target, seuser = "system_u"): argument
1760 if seuser == "":
1761 seuser = "system_u"
1763 rc = semanage_context_set_user(self.sh, con, seuser)
1790 def __add(self, target, type, ftype = "", serange = "", seuser = "system_u"): argument
1824 con = self.createcon(target, seuser)
1849 def add(self, target, type, ftype = "", serange = "", seuser = "system_u"): argument
1851 self.__add(target, type, ftype, serange, seuser)
1854 def __modify(self, target, setype, ftype, serange, seuser): argument
1855 if serange == "" and setype == "" and seuser == "":
[all …]
Dsemanage199 OBJECT.add(args.login, args.seuser, args.range)
201 OBJECT.modify(args.login, args.seuser, args.range)
309 OBJECT.add(args.file_spec, args.type, args.ftype, args.range, args.seuser)
314 OBJECT.modify(args.file_spec, args.type, args.ftype, args.range, args.seuser)
/external/selinux/libsemanage/
DChangeLog190 * allow fcontext and seuser changes without rebuilding the policy from Dan Walsh
430 * Merged seuser/user_extra support patch from Joshua Brindle.
443 * Merged seuser -> seuser_local rename patch from Ivan Gyurdiev.
586 * Merged move seuser validation patch from Ivan Gyurdiev.
632 * Merged seuser parser resync, dbase tracking and cleanup, strtol
743 * Merged seuser database patch from Ivan Gyurdiev.
748 Merged seuser record patch from Ivan Gyurdiev.
/external/selinux/libselinux/include/selinux/
Dselinux.h635 extern int getseuserbyname(const char *linuxuser, char **seuser, char **level);
/external/selinux/policycoreutils/sepolicy/sepolicy/
Dgui.py1745 seuser = self.combo_get_active_text(combo)
1748 if seuser == u['name']:
1925 seuser = self.combo_get_active_text(self.login_seuser_combobox)
1936 …self.cur_dict["login"][name] = { "action": "-m", "range": mls_range, "seuser": seuser, "oldrange":…
1939 self.cur_dict["login"][name] = { "action": "-a", "range": mls_range, "seuser": seuser }
1942 self.liststore.set_value(iter,1,seuser)
2096 seuser = login_dict[login]["seuser"]
2099 self.login_delete_liststore.set_value(iter, 1, seuser)
2284 seuser = self.cur_dict["login"][login]["seuser"]
2285 self.update_treestore.set_value(niter, 1, (_("SELinux User: %s")) % seuser)
/external/selinux/libsepol/src/
Dmodule_to_cil.c2954 char *seuser = NULL; in seusers_to_cil() local
2967 matched = sscanf(line, "%m[^:]:%m[^:]:%ms", &user, &seuser, &level); in seusers_to_cil()
2976 cil_printf("(selinuxuserdefault %s (", seuser); in seusers_to_cil()
2978 cil_printf("(selinuxuser %s %s (", user, seuser); in seusers_to_cil()
2993 free(seuser); in seusers_to_cil()
2996 user = seuser = level = NULL; in seusers_to_cil()
3008 free(seuser); in seusers_to_cil()
/external/selinux/policycoreutils/
DChangeLog54 * Revert automatic setting of serange and seuser in seobject; was breaking non-MLS systems.
943 * Merged seuser/user_extra support patch to semodule_package
965 * Merged seuser -> seuser local rename patch from Ivan Gyurdiev.
/external/selinux/policycoreutils/po/
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"
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"
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"
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 আবশ্যক"
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 అవసరము"
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"
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"
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 필요"

123456