diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-10-30 18:10:46 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-10-30 18:10:46 +0000 |
commit | e3a98b382a7c93a7db64f0d5e262009253d60e00 (patch) | |
tree | 49683be9952ac48eac766647fd9f60c1c164191d /sys/security/mac_biba/mac_biba.c | |
parent | 388f8f322a9b3ca49e4f317773395687af6c2de7 (diff) | |
download | FreeBSD-src-e3a98b382a7c93a7db64f0d5e262009253d60e00.zip FreeBSD-src-e3a98b382a7c93a7db64f0d5e262009253d60e00.tar.gz |
Various minor type, prototype tweaks -- clean up cruft due to lack of
type checking on entry points (to be introduced shortly).
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/security/mac_biba/mac_biba.c')
-rw-r--r-- | sys/security/mac_biba/mac_biba.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c index 97de18a..93bec84 100644 --- a/sys/security/mac_biba/mac_biba.c +++ b/sys/security/mac_biba/mac_biba.c @@ -559,7 +559,7 @@ mac_biba_element_to_string(char *string, size_t size, "%d+", bit); } if (string[pos - 1] == '+' || string[pos - 1] == ':') - string[--pos] = NULL; + string[--pos] = '\0'; return (pos); default: @@ -1360,7 +1360,7 @@ mac_biba_create_cred(struct ucred *cred_parent, struct ucred *cred_child) static void mac_biba_execve_transition(struct ucred *old, struct ucred *new, - struct vnode *vp, struct mac *vnodelabel) + struct vnode *vp, struct label *vnodelabel) { struct mac_biba *source, *dest; @@ -1373,7 +1373,7 @@ mac_biba_execve_transition(struct ucred *old, struct ucred *new, static int mac_biba_execve_will_transition(struct ucred *old, struct vnode *vp, - struct mac *vnodelabel) + struct label *vnodelabel) { return (0); @@ -1802,7 +1802,7 @@ mac_biba_check_socket_deliver(struct socket *so, struct label *socketlabel, } static int -mac_biba_check_socket_relabel(struct ucred *cred, struct socket *socket, +mac_biba_check_socket_relabel(struct ucred *cred, struct socket *so, struct label *socketlabel, struct label *newlabel) { struct mac_biba *subj, *obj, *new; |