diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2007-10-25 12:34:14 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2007-10-25 12:34:14 +0000 |
| commit | eb2cd5e1df2de9af1c4510a396ab702d3e04719c (patch) | |
| tree | 09ab2e34d1c0854e04e44916dd25df475c7a1a35 /sys/security/mac/mac_process.c | |
| parent | 3f1a7a9086a59e93615bb9e5f6163372cee4d669 (diff) | |
Notes
Diffstat (limited to 'sys/security/mac/mac_process.c')
| -rw-r--r-- | sys/security/mac/mac_process.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/security/mac/mac_process.c b/sys/security/mac/mac_process.c index c6c5cd8b5304..6ed6d9139e74 100644 --- a/sys/security/mac/mac_process.c +++ b/sys/security/mac/mac_process.c @@ -192,6 +192,22 @@ mac_proc_create_init(struct ucred *cred) MAC_PERFORM(proc_create_init, cred); } +/* + * When a thread becomes an NFS server daemon, its credential may need to be + * updated to reflect this so that policies can recognize when file system + * operations originate from the network. + * + * At some point, it would be desirable if the credential used for each NFS + * RPC could be set based on the RPC context (i.e., source system, etc) to + * provide more fine-grained access control. + */ +void +mac_proc_associate_nfsd(struct ucred *cred) +{ + + MAC_PERFORM(proc_associate_nfsd, cred); +} + void mac_thread_userret(struct thread *td) { |
