[arch-projects] [PATCH] fhs: update valid and invalid paths

teg at jklm.no teg at jklm.no
Sat Apr 28 18:04:56 EDT 2012


From: Tom Gundersen <teg at jklm.no>

* Remove /var/lock form valid paths. It is already forbidden, so should not be valid.
* Forbid most of /lib. We want to empty /lib over time. This explicitly allows /lib/modules
  as getting rid of it would require a coordinated rebuild.
* Prod people into emptying /{s,}bin. To the extent possible these dirs should be emptied
  and moved to /usr/bin. In particular we want to avoid new or third-party packages
  putting stuff here.
* Disallow installing in /srv. /srv is admin territory, similar to /home. No package should
  put stuff there.

Signed-off-by: Tom Gundersen <teg at jklm.no>
---

Now that the pam stuff is gone, I think this is ready to be merged :-)

 Namcap/rules/fhs.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Namcap/rules/fhs.py b/Namcap/rules/fhs.py
index e66d67e..e339eb7 100644
--- a/Namcap/rules/fhs.py
+++ b/Namcap/rules/fhs.py
@@ -26,10 +26,11 @@ class FHSRule(TarballRule):
 	description = "Checks for standard directories."
 	def analyze(self, pkginfo, tar):
 		valid_paths = [
-				'bin/', 'etc/', 'lib/', 'sbin/', 'opt/', 'srv/',
+				'etc/', 'opt/',
+				'lib/modules',
 				'usr/bin/', 'usr/include/', 'usr/lib/', 'usr/lib32/',
 				'usr/sbin/', 'usr/share/',
-				'var/cache/', 'var/lib/', 'var/lock/', 'var/log/', 'var/opt/',
+				'var/cache/', 'var/lib/', 'var/log/', 'var/opt/',
 				'var/spool/', 'var/state/',
 				'.PKGINFO', '.INSTALL', '.CHANGELOG',
 		]
-- 
1.7.10



More information about the arch-projects mailing list