[Bug 791078] New: rpm: requested file modes ignored
https://bugzilla.novell.com/show_bug.cgi?id=791078 https://bugzilla.novell.com/show_bug.cgi?id=791078#c0 Summary: rpm: requested file modes ignored Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: All OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: mls@suse.com ReportedBy: jengelh@inai.de QAContact: qa-bugs@suse.de Found By: Beta-Customer Blocker: --- This is for server:irc/atheme openSUSE_12.2. Installing the atheme package leads to /etc/atheme/atheme.conf not being owned root:atheme, even though rpm correctly determines it needs to use GID 409. 19:32 ares07:../atheme/binaries # getent group 409 atheme:!:409: 19:30 ares07:../atheme/binaries # l /etc/atheme ls: cannot access /etc/atheme: No such file or directory 19:30 ares07:../atheme/binaries # rpm -Uhvv atheme-7.0.5-22.1.x86_64.rpm 2>&1 | grep /etc/atheme/atheme.conf D: fini 100600 1 ( 0, 0) 46978 /etc/atheme/atheme.conf.operserv-example;50afc0d0 #D: fini 100600 1 ( 0, 0) 67006 /etc/atheme/atheme.conf.userserv-example;50afc0d0 D: fini 100640 2 ( 0, 409) 0 /etc/atheme/atheme.conf;50afc0d0 D: fini 100600 2 ( 0, 0) 66921 /etc/atheme/atheme.conf.example;50afc0d0 19:30 ares07:../atheme/binaries # l /etc/atheme/atheme.conf -rw------- 2 root root 66921 Nov 21 01:39 /etc/atheme/atheme.conf -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=791078 https://bugzilla.novell.com/show_bug.cgi?id=791078#c1 Jan Engelhardt <jengelh@inai.de> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mls@suse.com |dmueller@suse.com --- Comment #1 from Jan Engelhardt <jengelh@inai.de> 2012-11-23 19:47:49 CET --- This seems to have to do with the fact that it is hardlinked (against atheme.conf.example). It looks like the hardlink-across-config-files rpmlint check does not properly fire an error in this case. Contents of file section: %install [...] %fdupes %buildroot %files %config(noreplace) %attr(0640,root,atheme) %_sysconfdir/atheme/atheme.conf %_sysconfdir/atheme/*.example Using %config(noreplace) %attr(0640,root,atheme) %_sysconfdir/atheme/atheme.conf* instead, I get a hardlink-across-config-files error as expected. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=791078 https://bugzilla.novell.com/show_bug.cgi?id=791078#c2 Jan Engelhardt <jengelh@inai.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|rpm: requested file modes |rpmlint: |ignored |hardlink-across-config-file | |s not reliable --- Comment #2 from Jan Engelhardt <jengelh@inai.de> 2012-11-23 20:05:20 CET --- # Testcase specfile to show the problem (building this file should fail in OBS) Name: a Version: 0 Release: 0 Summary: a License: a BuildRequires: fdupes %description %install b="%buildroot"; mkdir -p "$b/%_sysconfdir"; echo hi >"$b/%_sysconfdir/a.conf"; echo hi >"$b/%_sysconfdir/b.conf"; %fdupes %buildroot %files %defattr(-,root,root) %attr(0640,root,daemon) %_sysconfdir/a.conf %_sysconfdir/b.conf -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=791078 https://bugzilla.novell.com/show_bug.cgi?id=791078#c Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=791078 https://bugzilla.novell.com/show_bug.cgi?id=791078#c Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Basesystem |Basesystem Version|Final |13.1 Beta 1 Product|openSUSE 12.2 |openSUSE Factory -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com