summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-11-05 17:51:56 +0000
committerrwatson <rwatson@FreeBSD.org>2002-11-05 17:51:56 +0000
commit6c4f4d26f40ce589a67efe5260b3ba8b84d18f53 (patch)
tree0c35ffffc1443eb8831c156b8636e7d9d90c53af /sys/compat
parent948267c75e47c6aad3531acbe80d2dd7c9622792 (diff)
downloadFreeBSD-src-6c4f4d26f40ce589a67efe5260b3ba8b84d18f53.zip
FreeBSD-src-6c4f4d26f40ce589a67efe5260b3ba8b84d18f53.tar.gz
Bring in two sets of changes:
(1) Permit userland applications to request a change of label atomic with an execve() via mac_execve(). This is required for the SEBSD port of SELinux/FLASK. Attempts to invoke this without MAC compiled in result in ENOSYS, as with all other MAC system calls. Complexity, if desired, is present in policy modules, rather than the framework. (2) Permit policies to have access to both the label of the vnode being executed as well as the interpreter if it's a shell script or related UNIX nonsense. Because we can't hold both vnode locks at the same time, cache the interpreter label. SEBSD relies on this because it supports secure transitioning via shell script executables. Other policies might want to take both labels into account during an integrity or confidentiality decision at execve()-time. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/pecoff/imgact_pecoff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/pecoff/imgact_pecoff.c b/sys/compat/pecoff/imgact_pecoff.c
index bf05ca8..fd9ab26 100644
--- a/sys/compat/pecoff/imgact_pecoff.c
+++ b/sys/compat/pecoff/imgact_pecoff.c
@@ -365,6 +365,7 @@ pecoff_load_file(struct thread * td, const char *file, u_long * addr, u_long * e
imgp->proc = td->td_proc;
imgp->userspace_argv = NULL;
imgp->userspace_envv = NULL;
+ imgp->execlabel = NULL;
imgp->attr = &attr;
imgp->firstpage = NULL;
OpenPOWER on IntegriCloud