/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() 64 const char *sename = NULL; in semanage_seuser_audit() local 82 sename = semanage_seuser_get_sename(seuser); in semanage_seuser_audit() 84 roles = semanage_user_roles(handle, sename); in semanage_seuser_audit() 87 if (sename && (!psename || strcmp(psename, sename) != 0)) { in semanage_seuser_audit() 114 …audit_log_semanage_message(fd, audit_type, NULL, msg, name, 0, sename, roles, mls, psename, proles… in semanage_seuser_audit() 130 const char *sename = semanage_seuser_get_sename(data); in semanage_seuser_modify_local() local 135 if (!sename) { in semanage_seuser_modify_local() 147 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 | 100 char *sename; member 638 if (sepol_context_set_user(sepolh, context, user->sename) < 0) { in write_contexts() 778 char *sename = NULL; in push_user_entry() local 797 sename = strdup(sen); in push_user_entry() 798 if (!sename) in push_user_entry() 821 temp->sename = sename; in push_user_entry() 836 free(sename); in push_user_entry() 858 free(temp->sename); in pop_user_entry() 951 const char *sename, in add_user() argument 1048 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 | 62 char *sename = NULL, *lvl = NULL; in ssh_selinux_getctxbyname() local 66 if (getseuserbyname(pwname, &sename, &lvl) != 0) in ssh_selinux_getctxbyname() 69 sename = pwname; in ssh_selinux_getctxbyname() 74 r = get_default_context_with_level(sename, lvl, NULL, &sc); in ssh_selinux_getctxbyname() 76 r = get_default_context(sename, NULL, &sc); in ssh_selinux_getctxbyname() 97 free(sename); in ssh_selinux_getctxbyname()
|
/external/selinux/python/semanage/ |
D | seobject.py | 113 …def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldseran… argument 116 if sename != oldsename: 126 …[self.audit_fd, audit.AUDIT_ROLE_ASSIGN, sys.argv[0], str(msg), name, 0, sename, serole, serange, … 128 …def log_remove(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", o… argument 129 …[self.audit_fd, audit.AUDIT_ROLE_REMOVE, sys.argv[0], str(msg), name, 0, sename, serole, serange, … 148 …def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldseran… argument 150 if sename != "": 151 message += " sename=" + sename 164 …def log_remove(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", o… argument 165 self.log(msg, name, sename, serole, serange, oldsename, oldserole, oldserange) [all …]
|
/external/selinux/libsemanage/include/semanage/ |
D | seuser_record.h | 42 const char *sename);
|