Minor cleanup: remove unused method definition
Subsystems (3)
PATCH 1/1 Minor cleanup: remove unused method definition
Hi,
This patch removes definition of netlbl_cfg_cipsov4_del() method in netlabel/netlabel_kapi.c and in include/net/netlabel.h as it is not used.
Regards,
Rami Rosen
include/net/netlabel.h +0 -6
@@ -350,7 +350,6 @@ int netlbl_cfg_cipsov4_add(struct cipso_v4_doi *doi_def,int netlbl_cfg_cipsov4_add_map (struct cipso_v4_doi *doi_def,const char *domain,struct netlbl_audit *audit_info); -int netlbl_cfg_cipsov4_del (u32 doi,struct netlbl_audit *audit_info);/* * LSM security attribute operations
@@ -408,11 +407,6 @@ static inline int netlbl_cfg_cipsov4_add_map(struct cipso_v4_doi *doi_def, {return -ENOSYS ; } -static inline int netlbl_cfg_cipsov4_del (u32 doi, -struct netlbl_audit *audit_info) -{ -return -ENOSYS ; -}static inline int netlbl_secattr_catmap_walk (struct netlbl_lsm_secattr_catmap *catmap,u32 offset)
net/netlabel/netlabel_kapi.c +0 -15
@@ -203,21 +203,6 @@ cfg_cipsov4_add_map_failure:return ret_val; } -/** -* netlbl_cfg_cipsov4_del - Removean existing CIPSOv4 DOI definition -* @doi: the CIPSO DOI value -* @audit_info: NetLabel audit information -* -* Description: -* Removes an existing CIPSOv4 DOI definition from the NetLabel subsystem. -* Returns zero on success, negative values on failure. -* -*/ -int netlbl_cfg_cipsov4_del (u32 doi,struct netlbl_audit *audit_info) -{ -return cipso_v4_doi_remove (doi, audit_info, netlbl_cipsov4_doi_free); -} -/* * Security Attribute Functions */
Quoted 7 lines · Rami Rosen
Hi,
This patch removes definition of
netlbl_cfg_cipsov4_del()method innetlabel/netlabel_kapi.cand ininclude/net/netlabel.has it is not used.
Quoted 5 lines
Regards,
Rami RosenSigned-off-by Rami Rosen <[email protected]>
This was added for use by Smack (and any other LSMs which want to configure NetLabel directly) and since this is an area that is undergoing a lot of churn at this point I'd prefer if this function was left in place for the time being.
At a later date if this function is still unused, I'll gladly ack it's removal or do so myself.
Signature · 2 lines
paul moore linux security @ hp
David Miller
maintainerFrom: Paul Moore <[email protected]>
Date: Tue, 19 Feb 2008 11:08:27 -0500
Quoted 14 lines · Rami Rosen
Quoted 7 lines
Hi,
This patch removes definition of
netlbl_cfg_cipsov4_del()method innetlabel/netlabel_kapi.cand ininclude/net/netlabel.has it is not used.Quoted 5 lines
Regards,
Rami RosenSigned-off-by Rami Rosen <[email protected]>
Quoted 7 lines
This was added for use by Smack (and any other LSMs which want to configure NetLabel directly) and since this is an area that is undergoing a lot of churn at this point I'd prefer if this function was left in place for the time being.
At a later date if this function is still unused, I'll gladly ack it's removal or do so myself.
Ok, let's leave it in for now.