/external/selinux/libsemanage/src/ |
D | seusers_local.c | 21 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 …]
|
D | seuser_record.c | 28 char *sename; member 143 return seuser->sename; in hidden_def() 149 semanage_seuser_t * seuser, const char *sename) in hidden_def() 152 char *tmp_sename = strdup(sename); in hidden_def() 158 free(seuser->sename); in hidden_def() 159 seuser->sename = tmp_sename; in hidden_def() 205 seuser->sename = NULL; in hidden_def() 228 if (semanage_seuser_set_sename(handle, new_seuser, seuser->sename) < 0) in hidden_def() 255 free(seuser->sename); in hidden_def()
|
D | users_local.c | 31 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()
|
D | genhomedircon.c | 98 char *sename; member 640 if (sepol_context_set_user(sepolh, context, user->sename) < 0) { in write_contexts() 780 char *sename = NULL; in push_user_entry() local 799 sename = strdup(sen); in push_user_entry() 800 if (!sename) in push_user_entry() 823 temp->sename = sename; in push_user_entry() 838 free(sename); in push_user_entry() 860 free(temp->sename); in pop_user_entry() 953 const char *sename, in add_user() argument 1046 retval = push_user_entry(head, name, uid, gid, sename, prefix, in add_user() [all …]
|
D | seusers_file.c | 27 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/openssh/openbsd-compat/ |
D | port-linux.c | 64 char *sename = NULL, *lvl = NULL; in ssh_selinux_getctxbyname() local 68 if (getseuserbyname(pwname, &sename, &lvl) != 0) in ssh_selinux_getctxbyname() 71 sename = pwname; in ssh_selinux_getctxbyname() 76 r = get_default_context_with_level(sename, lvl, NULL, &sc); in ssh_selinux_getctxbyname() 78 r = get_default_context(sename, NULL, &sc); in ssh_selinux_getctxbyname() 99 free(sename); in ssh_selinux_getctxbyname()
|
/external/selinux/python/semanage/ |
D | seobject.py | 111 …def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldseran… argument 114 if sename != oldsename: 124 …[self.audit_fd, audit.AUDIT_ROLE_ASSIGN, sys.argv[0], str(msg), name, 0, sename, serole, serange, … 126 …def log_remove(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", o… argument 127 …[self.audit_fd, audit.AUDIT_ROLE_REMOVE, sys.argv[0], str(msg), name, 0, sename, serole, serange, … 146 …def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldseran… argument 148 if sename != "": 149 message += " sename=" + sename 162 …def log_remove(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", o… argument 163 self.log(msg, name, sename, serole, serange, oldsename, oldserole, oldserange) [all …]
|
/external/selinux/libsemanage/include/semanage/ |
D | seuser_record.h | 42 const char *sename);
|