Make mpo_associate_nfsd_label() return void, not int, to match
mac_associate_nfsd_label(). Head nod: csjp
This commit is contained in:
parent
be0ee8b315
commit
14f212e215
@ -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 {
|
||||
/*
|
||||
|
@ -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 =
|
||||
|
@ -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 {
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user