<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>133700</bug_id>
          
          <creation_ts>2006-05-18 09:09 0000</creation_ts>
          <short_desc>/dev/grsec has wrong minor number after install</short_desc>
          <delta_ts>2007-04-29 15:24:20 0000</delta_ts>
          
          
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Hardened</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>michal@prihoda.net</reporter>
          <assigned_to>hardened@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>michal@prihoda.net</who>
            <bug_when>2006-05-18 09:09:14 0000</bug_when>
            <thetext>/dev/grsec gets created in gradm-*.ebuild with major 1 and minor 12:

mknod -m 0622 &quot;${ROOT}&quot;/dev/grsec c 1 12

but in packages Makefile it says:

$(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13

Which causes after gradm install (with hardened-sources-2.4.32-r2):

# ls -l /dev/grsec
crw--w--w- 1 root root 1, 12 May 18 18:14 /dev/grsec
# gradm -P
Could not open /dev/grsec.
open: No such device or address

And works, when changed to right number:
# rm /dev/grsec
# mknod /dev/grsec c 1 13
# chmod 0622 /dev/grsec 
# gradm -P
Setting up grsecurity RBAC password
Password: 

Guess the number has been changed, thought you should know :-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2006-05-18 09:12:12 0000</bug_when>
            <thetext>This is the 3rd time the device nod/numbering has changed.
I&apos;d rather drop this package than fix it for a 3rd time.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phreak@gentoo.org</who>
            <bug_when>2007-04-29 15:24:20 0000</bug_when>
            <thetext>OK, I just fixed the remaining ebuilds in sys-apps/gradm to use 1 13 for the mknod.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>