mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Un-staticize mac_cred_mmapped_drop_perms() so that it may be used
by policy modules making use of downgrades in the MAC AST event. This is required by the mac_lomac port of LOMAC to the MAC Framework. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
229cd60f68
commit
4d10c0ce5f
11 changed files with 11 additions and 9 deletions
|
|
@ -1856,7 +1856,7 @@ mac_check_vnode_write(struct ucred *active_cred, struct ucred *file_cred,
|
|||
* memory space, and revoke access (in the least surprising ways we
|
||||
* know) when necessary. The process lock is not held here.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -1856,7 +1856,7 @@ mac_check_vnode_write(struct ucred *active_cred, struct ucred *file_cred,
|
|||
* memory space, and revoke access (in the least surprising ways we
|
||||
* know) when necessary. The process lock is not held here.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -335,6 +335,7 @@ int mac_setsockopt_label_set(struct ucred *cred, struct socket *so,
|
|||
struct mac *extmac);
|
||||
int mac_pipe_label_set(struct ucred *cred, struct pipe *pipe,
|
||||
struct label *label);
|
||||
void mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred);
|
||||
|
||||
/*
|
||||
* Calls to help various file systems implement labeling functionality
|
||||
|
|
|
|||
|
|
@ -1856,7 +1856,7 @@ mac_check_vnode_write(struct ucred *active_cred, struct ucred *file_cred,
|
|||
* memory space, and revoke access (in the least surprising ways we
|
||||
* know) when necessary. The process lock is not held here.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -1856,7 +1856,7 @@ mac_check_vnode_write(struct ucred *active_cred, struct ucred *file_cred,
|
|||
* memory space, and revoke access (in the least surprising ways we
|
||||
* know) when necessary. The process lock is not held here.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -1856,7 +1856,7 @@ mac_check_vnode_write(struct ucred *active_cred, struct ucred *file_cred,
|
|||
* memory space, and revoke access (in the least surprising ways we
|
||||
* know) when necessary. The process lock is not held here.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -1856,7 +1856,7 @@ mac_check_vnode_write(struct ucred *active_cred, struct ucred *file_cred,
|
|||
* memory space, and revoke access (in the least surprising ways we
|
||||
* know) when necessary. The process lock is not held here.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -1856,7 +1856,7 @@ mac_check_vnode_write(struct ucred *active_cred, struct ucred *file_cred,
|
|||
* memory space, and revoke access (in the least surprising ways we
|
||||
* know) when necessary. The process lock is not held here.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -1856,7 +1856,7 @@ mac_check_vnode_write(struct ucred *active_cred, struct ucred *file_cred,
|
|||
* memory space, and revoke access (in the least surprising ways we
|
||||
* know) when necessary. The process lock is not held here.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -1856,7 +1856,7 @@ mac_check_vnode_write(struct ucred *active_cred, struct ucred *file_cred,
|
|||
* memory space, and revoke access (in the least surprising ways we
|
||||
* know) when necessary. The process lock is not held here.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -335,6 +335,7 @@ int mac_setsockopt_label_set(struct ucred *cred, struct socket *so,
|
|||
struct mac *extmac);
|
||||
int mac_pipe_label_set(struct ucred *cred, struct pipe *pipe,
|
||||
struct label *label);
|
||||
void mac_cred_mmapped_drop_perms(struct thread *td, struct ucred *cred);
|
||||
|
||||
/*
|
||||
* Calls to help various file systems implement labeling functionality
|
||||
|
|
|
|||
Loading…
Reference in a new issue