shipping files in /share

Bug #418026 reported by Steve Langasek
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
policycoreutils (Ubuntu)
Fix Released
High
Caleb Case

Bug Description

Binary package hint: policycoreutils

$ dpkg -c ~/ubuntu/pool/universe/p/policycoreutils/policycoreutils_2.0.55-1ubuntu1_i386.deb |grep ' \./share'
drwxr-xr-x root/root 0 2009-05-11 00:17 ./share/
drwxr-xr-x root/root 0 2009-05-11 00:17 ./share/man/
drwxr-xr-x root/root 0 2009-05-11 00:17 ./share/man/man8/
-rw-r--r-- root/root 917 2009-05-11 00:17 ./share/man/man8/load_policy.8
$

This appears to be a consequence of the Ubuntu-specific modification to put load_policy in /sbin instead of /usr/sbin. The rationale for this move is bug #126415, but that bug states that the policy must be loaded in the initramfs - that has nothing to do with whether tools are located on /sbin or /usr/sbin on the installed system.

ProblemType: Bug
Architecture: amd64
Date: Mon Aug 24 00:56:26 2009
DistroRelease: Ubuntu 9.10
Package: policycoreutils (not installed)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-6.26-generic
SourcePackage: policycoreutils
Uname: Linux 2.6.31-6-generic x86_64

Steve Langasek (vorlon)
Changed in policycoreutils (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Caleb Case (calebcase) wrote :

Is this bug to move the man pages to /usr/share or to move the load_policy tool to /usr/sbin?

Revision history for this message
Steve Langasek (vorlon) wrote :

The bug is about moving the man pages to /usr/share. The easiest way to do that is to revert the Ubuntu delta that put load_policy to /sbin, and I can't see any reason not to do that.

Revision history for this message
Caleb Case (calebcase) wrote : Re: [Bug 418026] Re: shipping files in /share

load_policy is called from the initramfs to load the policy. At that
point /usr is not guaranteed to be mounted. That was why it was moved
to /sbin.

Revision history for this message
Steve Langasek (vorlon) wrote :

*Nothing* in the initramfs should be calling *anything* from the installed system. If you need load_policy in the initramfs, it should be *copied into the initramfs*.

See /usr/share/initramfs-tools/hooks/* for examples of this.

Kees Cook (kees)
Changed in policycoreutils (Ubuntu):
milestone: none → ubuntu-9.10-beta
Kees Cook (kees)
Changed in policycoreutils (Ubuntu):
milestone: ubuntu-9.10-beta → karmic-alpha-6
assignee: nobody → Caleb Case (calebcase)
Revision history for this message
Caleb Case (calebcase) wrote :

Debdiff attached that moves the man pages to /usr/share

Revision history for this message
Caleb Case (calebcase) wrote :

Debdiff attached that moves the man pages to /usr/share

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package policycoreutils - 2.0.69-2ubuntu2

---------------
policycoreutils (2.0.69-2ubuntu2) karmic; urgency=low

  * Install man pages to /usr/share (LP: #418026).
  * Only use 'seclabel' checking if selinux is enabled (LP: #428043).

 -- Caleb Case <email address hidden> Fri, 11 Sep 2009 14:26:09 -0400

Changed in policycoreutils (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.