Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18864 - [gentoo-sources-2.4.20-r2.ebuild] Problems with grsecurity and /proc/net
Summary: [gentoo-sources-2.4.20-r2.ebuild] Problems with grsecurity and /proc/net
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-06 13:41 UTC by Andrey Ulanov
Modified: 2003-04-16 15:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel's .config file (.config,28.59 KB, text/plain)
2003-04-06 13:41 UTC, Andrey Ulanov
Details
good strace of ifconfig (ifconfig.strace,7.75 KB, text/plain)
2003-04-06 13:43 UTC, Andrey Ulanov
Details
bad strace of sysconfig (ifconfig.strace,6.40 KB, text/plain)
2003-04-06 13:44 UTC, Andrey Ulanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Ulanov 2003-04-06 13:41:01 UTC
Look:

$ pwd
/home/drey
$ /sbin/ifconfig 
Warning: cannot open /proc/net/dev (Permission denied). Limited output.
eth0      Link encap:Ethernet  HWaddr 00:50:22:8B:AF:4D  
          inet addr:194.85.82.184  Bcast:194.85.83.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:11 Base address:0x9000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1

$ cd /proc/net
bash: cd: /proc/net: Permission denied
$ cd /proc
$ cd net
$ /sbin/ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:50:22:8B:AF:4D  
          inet addr:194.85.82.184  Bcast:194.85.83.255  Mask:255.255.252.0
          inet6 addr: 3ffe:b80:1377::bad:beef/48 Scope:Global
          inet6 addr: fe80::250:22ff:fe8b:af4d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:603463 errors:0 dropped:0 overruns:0 frame:0
          TX packets:390827 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:792140645 (755.4 Mb)  TX bytes:35248014 (33.6 Mb)
          Interrupt:11 Base address:0x9000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2307 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2307 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:502207 (490.4 Kb)  TX bytes:502207 (490.4 Kb)

$ cd ..
$ /sbin/ifconfig 
Warning: cannot open /proc/net/dev (Permission denied). Limited output.
eth0      Link encap:Ethernet  HWaddr 00:50:22:8B:AF:4D  
          inet addr:194.85.82.184  Bcast:194.85.83.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:11 Base address:0x9000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1

$
Comment 1 Andrey Ulanov 2003-04-06 13:41:58 UTC
Created attachment 10288 [details]
Kernel's .config file
Comment 2 Andrey Ulanov 2003-04-06 13:43:34 UTC
Created attachment 10289 [details]
good strace of ifconfig
Comment 3 Andrey Ulanov 2003-04-06 13:44:28 UTC
Created attachment 10290 [details]
bad strace of sysconfig
Comment 4 Seth Chandler 2003-04-06 14:08:11 UTC
you sure this is a bug? or you just don't have grsecurity set up right.   
 
Its SUPPOSED to be permission denied if you're a regular user... 
Comment 5 Andrey Ulanov 2003-04-06 14:15:18 UTC
Yes. I'm sure. It gives same result even under root. Read bugreport more carefully, please.
If it supposed to be permission denied, why it does not after chdir to /proc/net?
Comment 6 Seth Chandler 2003-04-06 14:23:33 UTC
asfd 
'sadf 
a 
Comment 7 Jay Pfeifer (RETIRED) gentoo-dev 2003-04-15 19:54:34 UTC
please try against gentoo-sources-2.4.20-r3 as it has grsecurity-1.9.9f 
 
Thanks, 
 
Jay 
Comment 8 Andrey Ulanov 2003-04-16 15:29:39 UTC
works well now with gentoo-sources-2.4.20-r3
Comment 9 Jay Pfeifer (RETIRED) gentoo-dev 2003-04-16 15:34:23 UTC
closed as per below. 
 
Thanks, 
 
Jay