Home
last modified time | relevance | path

Searched refs:domainname (Results 1 – 24 of 24) sorted by relevance

/linux-6.1.9/security/tomoyo/
Ddomain.c230 && p1->domainname == p2->domainname in tomoyo_same_transition_control()
248 char *domainname = strstr(program, " from "); in tomoyo_write_transition_control() local
250 if (domainname) { in tomoyo_write_transition_control()
251 *domainname = '\0'; in tomoyo_write_transition_control()
252 domainname += 6; in tomoyo_write_transition_control()
255 domainname = program; in tomoyo_write_transition_control()
265 if (domainname && strcmp(domainname, "any")) { in tomoyo_write_transition_control()
266 if (!tomoyo_correct_domain(domainname)) { in tomoyo_write_transition_control()
267 if (!tomoyo_correct_path(domainname)) in tomoyo_write_transition_control()
271 e.domainname = tomoyo_get_name(domainname); in tomoyo_write_transition_control()
[all …]
Dutil.c559 bool tomoyo_correct_domain(const unsigned char *domainname) in tomoyo_correct_domain() argument
561 if (!domainname || !tomoyo_domain_def(domainname)) in tomoyo_correct_domain()
563 domainname = strchr(domainname, ' '); in tomoyo_correct_domain()
564 if (!domainname++) in tomoyo_correct_domain()
567 const unsigned char *cp = strchr(domainname, ' '); in tomoyo_correct_domain()
571 if (!tomoyo_correct_path2(domainname, cp - domainname)) in tomoyo_correct_domain()
573 domainname = cp + 1; in tomoyo_correct_domain()
575 return tomoyo_correct_path(domainname); in tomoyo_correct_domain()
612 struct tomoyo_domain_info *tomoyo_find_domain(const char *domainname) in tomoyo_find_domain() argument
617 name.name = domainname; in tomoyo_find_domain()
[all …]
Dsecurityfs_if.c25 return !tomoyo_pathcmp(r->param.task.domainname, acl->domainname); in tomoyo_check_task_acl()
63 r.param.task.domainname = &name; in tomoyo_write_self()
103 const char *domain = tomoyo_domain()->domainname->name; in tomoyo_read_self()
Dcommon.h491 const struct tomoyo_path_info *domainname; member
684 const struct tomoyo_path_info *domainname; member
701 const struct tomoyo_path_info *domainname; member
854 const struct tomoyo_path_info *domainname; /* Maybe NULL */ member
933 bool tomoyo_correct_domain(const unsigned char *domainname);
1030 struct tomoyo_domain_info *tomoyo_assign_domain(const char *domainname,
1033 struct tomoyo_domain_info *tomoyo_find_domain(const char *domainname);
1037 (const char *domainname);
Dcommon.c933 const struct tomoyo_path_info *domainname = tomoyo_domain()->domainname; in tomoyo_manager() local
948 (!tomoyo_pathcmp(domainname, ptr->manager) || in tomoyo_manager()
960 domainname->name, exe); in tomoyo_manager()
1040 return p1->domainname == p2->domainname; in tomoyo_same_task_acl()
1059 .domainname = tomoyo_get_domainname(param), in tomoyo_write_task()
1062 if (e.domainname) in tomoyo_write_task()
1066 tomoyo_put_name(e.domainname); in tomoyo_write_task()
1080 static int tomoyo_delete_domain(char *domainname) in tomoyo_delete_domain() argument
1085 name.name = domainname; in tomoyo_delete_domain()
1096 tomoyo_pathcmp(domain->domainname, &name)) in tomoyo_delete_domain()
[all …]
Daudit.c253 const char *domainname = r->domain->domainname->name; in tomoyo_init_log() local
259 len += strlen(domainname) + strlen(header) + 10; in tomoyo_init_log()
289 pos += snprintf(buf + pos, len - pos, "\n%s\n", domainname); in tomoyo_init_log()
Dgc.c114 tomoyo_put_name(ptr->domainname); in tomoyo_del_transition_control()
236 tomoyo_put_name(entry->domainname); in tomoyo_del_acl()
267 tomoyo_put_name(domain->domainname); in tomoyo_del_domain()
Dmemory.c205 tomoyo_kernel_domain.domainname = tomoyo_get_name("<kernel>"); in tomoyo_mm_init()
/linux-6.1.9/kernel/
Dutsname_sysctl.c117 .data = init_uts_ns.name.domainname,
118 .maxlen = sizeof(init_uts_ns.name.domainname),
Dsys.c1427 memcpy(u->domainname, tmp, len); in SYSCALL_DEFINE2()
1428 memset(u->domainname + len, 0, sizeof(u->domainname) - len); in SYSCALL_DEFINE2()
/linux-6.1.9/fs/cifs/
Dfs_context.c316 new_ctx->domainname = NULL; in smb3_fs_context_dup()
330 DUP_CTX_STR(domainname); in smb3_fs_context_dup()
764 if (new_ctx->domainname && in smb3_verify_reconfigure_ctx()
765 (!old_ctx->domainname || strcmp(new_ctx->domainname, old_ctx->domainname))) { in smb3_verify_reconfigure_ctx()
822 STEAL_STRING(cifs_sb, ctx, domainname); in smb3_reconfigure()
1203 kfree(ctx->domainname); in smb3_fs_context_parse_param()
1204 ctx->domainname = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1205 if (ctx->domainname == NULL) { in smb3_fs_context_parse_param()
1591 kfree(ctx->domainname); in smb3_cleanup_fs_context_contents()
1592 ctx->domainname = NULL; in smb3_cleanup_fs_context_contents()
Dfs_context.h170 char *domainname; member
Dconnect.c2121 ctx->domainname = kstrdup(ses->domainName, GFP_KERNEL); in cifs_set_cifscreds()
2122 if (!ctx->domainname) { in cifs_set_cifscreds()
2240 if (ctx->domainname) { in cifs_get_smb_ses()
2241 ses->domainName = kstrdup(ctx->domainname, GFP_KERNEL); in cifs_get_smb_ses()
Dsess.c396 ctx.domainname = ses->domainName; in cifs_ses_add_channel()
/linux-6.1.9/arch/sparc/kernel/
Dsys_sparc_32.c208 nlen = strlen(utsname()->domainname) + 1; in SYSCALL_DEFINE2()
212 memcpy(tmp, utsname()->domainname, nlen); in SYSCALL_DEFINE2()
Dsys_sparc_64.c534 nlen = strlen(utsname()->domainname) + 1; in SYSCALL_DEFINE2()
538 memcpy(tmp, utsname()->domainname, nlen); in SYSCALL_DEFINE2()
/linux-6.1.9/include/uapi/linux/
Dutsname.h31 char domainname[__NEW_UTS_LEN + 1]; member
/linux-6.1.9/init/
Dversion-timestamp.c19 .domainname = UTS_DOMAINNAME,
/linux-6.1.9/net/ipv4/
Dipconfig.c966 ic_bootp_string(utsname()->domainname, ext+1, *ext, in ic_do_bootp_ext()
1605 utsname()->nodename, ic_domain, utsname()->domainname); in ip_auto_config()
1768 strscpy(utsname()->domainname, dp, in ip_auto_config_setup()
1769 sizeof(utsname()->domainname)); in ip_auto_config_setup()
/linux-6.1.9/drivers/scsi/qla2xxx/
Dqla_mr.h269 char domainname[DOMNAME_LENGTH]; member
Dqla_mr.c1865 strlcpy(phost_info->domainname, p_sysid->domainname, in qlafx00_fx_disc()
1866 sizeof(phost_info->domainname)); in qlafx00_fx_disc()
1886 phost_info->domainname, in qlafx00_fx_disc()
/linux-6.1.9/Documentation/admin-guide/sysctl/
Dkernel.rst252 domainname & hostname
255 These files can be used to set the NIS/YP domainname and the
257 domainname and hostname, i.e.::
260 # echo "mydomain" > /proc/sys/kernel/domainname
265 # domainname "mydomain"
269 domainname "frop.org", not to be confused with the NIS (Network
270 Information Service) or YP (Yellow Pages) domainname. These two
/linux-6.1.9/arch/alpha/kernel/
Dosf_sys.c571 kname = utsname()->domainname; in SYSCALL_DEFINE2()
/linux-6.1.9/kernel/debug/kdb/
Dkdb_main.c2514 kdb_printf("domainname %s\n", init_uts_ns.name.domainname); in kdb_summary()