Skip to contentSkip to conversation

Minor cleanup: remove unused method definition

PATCH In review Rami Rosen 3 participants 3 messages Feb 19, 2008 – Feb 20, 2008

Subsystems (3)
lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

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
index 0ca67d7..911d8c6 100644
@@ -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
index 39793a1..02b268d 100644
@@ -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
  */
#1 lore raw
Quoted 7 lines · Rami Rosen

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.

Quoted 5 lines

Regards,
Rami Rosen

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
maintainer
#2 lore raw

From: 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 in netlabel/netlabel_kapi.c and in include/net/netlabel.h as it is not used.

Quoted 5 lines

Regards,
Rami Rosen

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.