Home
last modified time | relevance | path

Searched refs:sename (Results 1 – 8 of 8) sorted by relevance

/external/selinux/libsemanage/src/
Dseusers_local.c21 static char *semanage_user_roles(semanage_handle_t * handle, const char *sename) { in semanage_user_roles() argument
29 if (semanage_user_key_create(handle, sename, &key) >= 0) { in semanage_user_roles()
60 const char *sename = NULL; in semanage_seuser_audit() local
72 sename = semanage_seuser_get_sename(seuser); in semanage_seuser_audit()
74 roles = semanage_user_roles(handle, sename); in semanage_seuser_audit()
82 if (sename && (!psename || strcmp(psename, sename) != 0)) { in semanage_seuser_audit()
109 …audit_log_semanage_message(fd, audit_type, NULL, msg, name, 0, sename, roles, mls, psename, proles… in semanage_seuser_audit()
125 const char *sename = semanage_seuser_get_sename(data); in semanage_seuser_modify_local() local
130 if (!sename) { in semanage_seuser_modify_local()
142 rc = semanage_user_key_create(handle, sename, &ukey); in semanage_seuser_modify_local()
[all …]
Dseuser_record.c28 char *sename; member
138 return seuser->sename; in hidden_def()
144 semanage_seuser_t * seuser, const char *sename) in hidden_def()
147 char *tmp_sename = strdup(sename); in hidden_def()
153 free(seuser->sename); in hidden_def()
154 seuser->sename = tmp_sename; in hidden_def()
200 seuser->sename = NULL; in hidden_def()
223 if (semanage_seuser_set_sename(handle, new_seuser, seuser->sename) < 0) in hidden_def()
250 free(seuser->sename); in hidden_def()
Dusers_local.c31 const char *sename; in lookup_seuser() local
42 sename = semanage_seuser_get_sename(records[i]); in lookup_seuser()
43 if (strcmp(name, sename) == 0) { in lookup_seuser()
46 sename, semanage_seuser_get_name(records[i])); in lookup_seuser()
Dgenhomedircon.c99 char *sename; member
657 char *sename = NULL; in push_user_entry() local
668 sename = strdup(sen); in push_user_entry()
669 if (!sename) in push_user_entry()
682 temp->sename = sename; in push_user_entry()
693 free(sename); in push_user_entry()
711 free(temp->sename); in pop_user_entry()
944 users->sename, users->home, in write_gen_home_dir_context()
948 users->sename, users->prefix)) in write_gen_home_dir_context()
Dseusers_file.c27 const char *sename = semanage_seuser_get_sename(seuser); in seuser_print() local
30 if (fprintf(str, "%s:%s", name, sename) < 0) in seuser_print()
/external/selinux/policycoreutils/semanage/
Dseobject.py94 …def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldseran… argument
97 if sename != oldsename:
107 …[self.audit_fd, audit.AUDIT_ROLE_ASSIGN, sys.argv[0], str(msg), name, 0, sename, serole, serange, …
109 …def log_remove(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", o… argument
110 …[self.audit_fd, audit.AUDIT_ROLE_REMOVE, sys.argv[0], str(msg), name, 0, sename, serole, serange, …
122 …def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldseran… argument
124 if sename != "":
125 message += " sename=" + sename
138 …def log_remove(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", o… argument
139 self.log(msg, name, sename, serole, serange, oldsename, oldserole, oldserange)
[all …]
/external/selinux/libsemanage/include/semanage/
Dseuser_record.h42 const char *sename);
/external/selinux/policycoreutils/
DChangeLog18 …* semanage: Set self.sename to sename after calling semanage_seuser_set_sename(), from Laurent Big…