Hi list,
   I 'm trying to emerge net-analyzer/tcpdump-4.6.2, to debug some ICMPv6
   problem I recently encountered. So, I type:

   Riaqn-Laptop ~ # emerge -av tcpdump                      

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-libs/libcap-ng-0.7.4  USE="-python -static-libs" 
PYTHON_TARGETS="python2_7 python3_3 -python3_4" 0 KiB
[ebuild  N     ] net-analyzer/tcpdump-4.6.2  USE="drop-root ipv6 ssl -samba 
-smi -suid {-test}" 0 KiB

Total: 2 packages (2 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) sys-libs/libcap-ng-0.7.4::gentoo
 * libcap-ng-0.7.4.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                  
                                                                                
                        [ ok ]
>>> Unpacking source...
>>> Unpacking libcap-ng-0.7.4.tar.gz to 
>>> /var/tmp/portage/sys-libs/libcap-ng-0.7.4/work
>>> Source unpacked in /var/tmp/portage/sys-libs/libcap-ng-0.7.4/work
>>> Preparing source in 
>>> /var/tmp/portage/sys-libs/libcap-ng-0.7.4/work/libcap-ng-0.7.4 ...
 * ACCESS DENIED:  open_wr:      /proc/sys/net/ipv6/conf/enp4s0/autoconf
 * ACCESS DENIED:  open_wr:      /proc/sys/net/ipv6/conf/enp4s0/accept_ra
 * Running eautoreconf in 
'/var/tmp/portage/sys-libs/libcap-ng-0.7.4/work/libcap-ng-0.7.4' ...
 * Running libtoolize --install --copy --force --automake ...
 * ACCESS DENIED:  open_wr:      /proc/sys/net/ipv6/conf/enp4s0/autoconf
 * ACCESS DENIED:  open_wr:      /proc/sys/net/ipv6/conf/enp4s0/accept_ra       
                                                                                
                        [ ok ]

Riaqn-Laptop ~ # cat 
/var/tmp/portage/sys-libs/libcap-ng-0.7.4/temp/autoconf.out 
***** autoconf *****
***** PWD: /var/tmp/portage/sys-libs/libcap-ng-0.7.4/work/libcap-ng-0.7.4
***** autoconf

sysctl: permission denied on key 'net.ipv6.conf.enp4s0.autoconf'
sysctl: permission denied on key 'net.ipv6.conf.enp4s0.accept_ra'

However, the permission looks quite right, I(root) can even write to it:
Riaqn-Laptop ~ # ls -l /proc/sys/net/ipv6/conf/enp4s0/autoconf 
-rw-r--r-- 1 root root 0 12月  9 22:58 /proc/sys/net/ipv6/conf/enp4s0/autoconf

Even if I emerge with FEATURES="-userpriv" doesn't help, same output.
I don't know if it's related, but as far as I noticed, dhcpcd will set
these two values to 0, to disable the kernel configuring the IPv6
address.(I checked dhcpcd source)

Any comment is appreciated!

Regards,
-- 
Zesen Qian (钱泽森)


Reply via email to