Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379017 - app-admin/syslog-ng-3.2.4 with caps useflag triggers warning in kernels >=2.6.38 - Attempt to access syslog with CAP_SYS_ADMIN but no CAP_SYSLOG (deprecated)
Summary: app-admin/syslog-ng-3.2.4 with caps useflag triggers warning in kernels >=2.6...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mr. Bones. (RETIRED)
URL: https://bugzilla.balabit.com/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-13 08:43 UTC by Jens Pranaitis
Modified: 2012-01-16 13:47 UTC (History)
4 users (show)

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


Attachments
patch fixing upstream bug #108 (syslog-ng-3.2.4-use-cap_syslog.patch,5.10 KB, patch)
2011-08-13 08:44 UTC, Jens Pranaitis
Details | Diff
updated syslog-ng ebuild (syslog-ng-3.2.4-r1.ebuild,3.26 KB, text/plain)
2011-08-13 08:44 UTC, Jens Pranaitis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Pranaitis 2011-08-13 08:43:44 UTC
When running syslog-ng with caps support the following warning is triggered on kernels >=2.6.38:

[  672.069023] ------------[ cut here ]------------
[  672.069032] WARNING: at kernel/printk.c:322 do_syslog+0xbf/0x4e0()
[  672.069034] Hardware name: 4290W1A
[  672.069035] Attempt to access syslog with CAP_SYS_ADMIN but no CAP_SYSLOG (deprecated).
[  672.069037] Modules linked in: vhba btusb bluetooth uvcvideo videodev v4l2_compat_ioctl32 iwlagn mac80211 cfg80211 dm_snapshot dm_mirror dm_region_hash dm_log
[  672.069050] Pid: 3801, comm: syslog-ng Not tainted 3.1.0-rc1 #3
[  672.069051] Call Trace:
[  672.069056]  [<ffffffff8107da1a>] warn_slowpath_common+0x7a/0xb0
[  672.069058]  [<ffffffff8107daf1>] warn_slowpath_fmt+0x41/0x50
[  672.069062]  [<ffffffff81088ee5>] ? ns_capable+0x25/0x60
[  672.069064]  [<ffffffff8107f06f>] do_syslog+0xbf/0x4e0
[  672.069069]  [<ffffffff81161a44>] ? _d_rehash+0x44/0x50
[  672.069072]  [<ffffffff81161a6d>] ? d_rehash+0x1d/0x30
[  672.069077]  [<ffffffff8114351b>] ? kmem_cache_alloc_trace+0x3b/0x120
[  672.069080]  [<ffffffff811b1407>] kmsg_open+0x17/0x20
[  672.069083]  [<ffffffff811a5fbf>] proc_reg_open+0x9f/0x160
[  672.069086]  [<ffffffff811b13d0>] ? read_vmcore+0x1f0/0x1f0
[  672.069090]  [<ffffffff8114b514>] __dentry_open+0x1f4/0x350
[  672.069092]  [<ffffffff811582a4>] ? do_lookup+0x184/0x370
[  672.069095]  [<ffffffff811a5f20>] ? proc_fill_super+0xb0/0xb0
[  672.069098]  [<ffffffff8114b771>] nameidata_to_filp+0x71/0x80
[  672.069101]  [<ffffffff811593df>] do_last+0x1cf/0x7e0
[  672.069104]  [<ffffffff8115a380>] path_openat+0xd0/0x3f0
[  672.069107]  [<ffffffff810df900>] ? call_rcu_sched+0x10/0x20
[  672.069110]  [<ffffffff8115a7b4>] do_filp_open+0x44/0xa0
[  672.069114]  [<ffffffff811433f7>] ? kmem_cache_alloc+0x37/0x120
[  672.069117]  [<ffffffff8116715b>] ? alloc_fd+0x4b/0x140
[  672.069119]  [<ffffffff8114ba32>] do_sys_open+0x102/0x1e0
[  672.069122]  [<ffffffff8114bb3b>] sys_open+0x1b/0x20
[  672.069127]  [<ffffffff815b17fb>] system_call_fastpath+0x16/0x1b
[  672.069130] ---[ end trace 0e11093b221ece8b ]---

There has already been a bug reported upstream and a fix has been published. An updated ebuild and the patch are attached to this bugreport.

Reproducible: Always

Steps to Reproduce:
1. compile syslog-ng with caps support
2. run kernel >2.6.38 and start syslog-ng
3. check kernel warning in dmesg



Portage 2.1.10.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.2-r0, 3.1.0-rc1 x86_64)
=================================================================
System uname: Linux-3.1.0-rc1-x86_64-Intel-R-_Core-TM-_i3-2310M_CPU_@_2.10GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 13 Aug 2011 07:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo kde pentoo jensp
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/pentoo /var/lib/layman/jensp"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apng autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli clucene consolekit cracklib crypt css cups cxx dbus declarative dri dts dvd dvdr emboss encode exif extensions fam firefox flac gdbm gdu gif gpm gtk hdaps humanities iconv icq idn injection ipv6 jabber joystick jpeg kde kipi kpathsea lcms libnotify mad matroska mdnsresponder-compat mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly ofa offensive ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pppd python qt3support qt4 readline samba sdl semantic-desktop session silc sna spell sse sse2 sse3 sse4 sse4a ssl ssse3 startup-notification svg sysfs tcpd thinkpad tiff tordns truetype udev unicode usb vaapi vim vim-syntax vnc vorbis wifi x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zeroconf zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jens Pranaitis 2011-08-13 08:44:28 UTC
Created attachment 283125 [details, diff]
patch fixing upstream bug #108
Comment 2 Jens Pranaitis 2011-08-13 08:44:51 UTC
Created attachment 283127 [details]
updated syslog-ng ebuild
Comment 3 Horst Prote 2011-11-26 22:21:12 UTC
I had this warning, too (kernels 2.6.39 and 3.0.6, syslog-ng-3.2.4).
And the supplied Patch removed it from dmesg.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2011-11-27 04:32:51 UTC
use 3.2.5
Comment 5 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2012-01-16 13:45:37 UTC
Reopen BUG, please! This "feature" still NOT FIXED (!!!!!!) in 3.2.5.
Patch for 3.2 branch is on upstream bugtracker.


3.2.5(23:19:56 14.01.2012)(caps ipv6 pcre ssl tcpd -hardened -selinux -spoof-source -sql)
if any