Make mpo_associate_nfsd_label() return void, not int, to match

mac_associate_nfsd_label().

Head nod:	csjp
This commit is contained in:
Robert Watson 2006-08-06 16:56:15 +00:00
parent be0ee8b315
commit 14f212e215
3 changed files with 3 additions and 4 deletions

View File

@ -589,7 +589,7 @@ typedef int (*mpo_check_vnode_stat_t)(struct ucred *active_cred,
typedef int (*mpo_check_vnode_write_t)(struct ucred *active_cred,
struct ucred *file_cred, struct vnode *vp,
struct label *label);
typedef int (*mpo_associate_nfsd_label_t)(struct ucred *cred);
typedef void (*mpo_associate_nfsd_label_t)(struct ucred *cred);
struct mac_policy_ops {
/*

View File

@ -3019,7 +3019,7 @@ mac_biba_check_vnode_write(struct ucred *active_cred,
return (0);
}
static int
static void
mac_biba_associate_nfsd_label(struct ucred *cred)
{
struct mac_biba *label;
@ -3028,7 +3028,6 @@ mac_biba_associate_nfsd_label(struct ucred *cred)
mac_biba_set_effective(label, MAC_BIBA_TYPE_LOW, 0, NULL);
mac_biba_set_range(label, MAC_BIBA_TYPE_LOW, 0, NULL,
MAC_BIBA_TYPE_HIGH, 0, NULL);
return (0);
}
static struct mac_policy_ops mac_biba_ops =

View File

@ -589,7 +589,7 @@ typedef int (*mpo_check_vnode_stat_t)(struct ucred *active_cred,
typedef int (*mpo_check_vnode_write_t)(struct ucred *active_cred,
struct ucred *file_cred, struct vnode *vp,
struct label *label);
typedef int (*mpo_associate_nfsd_label_t)(struct ucred *cred);
typedef void (*mpo_associate_nfsd_label_t)(struct ucred *cred);
struct mac_policy_ops {
/*