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:
Robert Watson 2002-11-26 17:11:57 +00:00
parent 229cd60f68
commit 4d10c0ce5f
11 changed files with 11 additions and 9 deletions

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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