Mageia Bugzilla – Attachment 6222 Details for
Bug 15650
msec is flagging a "violation" by avahi ... wrong home directories for avahi sysem users
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
New Patch which incorporates Luigi's commentary.
avahi-mga-svn2.diff (text/plain), 1.42 KB, created by
Shlomi Fish
on 2015-04-08 17:51:58 CEST
(
hide
)
Description:
New Patch which incorporates Luigi's commentary.
Filename:
MIME Type:
Creator:
Shlomi Fish
Created:
2015-04-08 17:51:58 CEST
Size:
1.42 KB
patch
obsolete
>Index: SPECS/avahi.spec >=================================================================== >--- SPECS/avahi.spec (revision 819870) >+++ SPECS/avahi.spec (working copy) >@@ -73,7 +73,7 @@ > > Name: avahi > Version: 0.6.31 >-Release: %mkrel 15 >+Release: %mkrel 16 > Summary: Avahi service discovery (mDNS/DNS-SD) suite > License: LGPLv2+ > Group: System/Servers >@@ -89,7 +89,7 @@ > BuildRequires: dbus-python > BuildRequires: libexpat-devel >= 2.0.1 > BuildRequires: libgdbm-devel >-BuildRequires: libglade2.0-devel >+BuildRequires: pkgconfig(libglade-2.0) > BuildRequires: pygtk2.0 > BuildRequires: libcap-devel > #needed by autoreconf >@@ -426,10 +426,18 @@ > rm -f %{buildroot}%{_initrddir}/%{name}-dnsconfd > > %pre >-%_pre_useradd %{name} %{_var}/%{name} /bin/false >-%_pre_useradd %{name}-autoipd %{_var}/%{name} /bin/false >+%_pre_useradd %{name} %{_var}/run/%{name}-daemon /bin/false >+%_pre_useradd %{name}-autoipd %{_var}/lib/%{name}-autoipd /bin/false >+# Correct home directories if users already exists (mga#10004) >+if [ "`grep -E '^%{name}:' < /etc/passwd | cut -f6 -d:`" = %{_var}/avahi ]; then >+ %{_sbindir}/usermod -d %{_var}/run/%{name}-daemon %{name} >+fi >+if [ "`grep -E '^%{name}-autoipd:' < /etc/passwd | cut -f6 -d:`" = %{_var}/avahi ]; then >+ %{_sbindir}/usermod -d %{_var}/lib/%{name}-autoipd %{name}-autoipd >+fi > > %postun >+# Note postun_userdel is a dummy script. It does not do anything! > %_postun_userdel %{name} > %_postun_userdel %{name}-autoipd >
Index: SPECS/avahi.spec =================================================================== --- SPECS/avahi.spec (revision 819870) +++ SPECS/avahi.spec (working copy) @@ -73,7 +73,7 @@ Name: avahi Version: 0.6.31 -Release: %mkrel 15 +Release: %mkrel 16 Summary: Avahi service discovery (mDNS/DNS-SD) suite License: LGPLv2+ Group: System/Servers @@ -89,7 +89,7 @@ BuildRequires: dbus-python BuildRequires: libexpat-devel >= 2.0.1 BuildRequires: libgdbm-devel -BuildRequires: libglade2.0-devel +BuildRequires: pkgconfig(libglade-2.0) BuildRequires: pygtk2.0 BuildRequires: libcap-devel #needed by autoreconf @@ -426,10 +426,18 @@ rm -f %{buildroot}%{_initrddir}/%{name}-dnsconfd %pre -%_pre_useradd %{name} %{_var}/%{name} /bin/false -%_pre_useradd %{name}-autoipd %{_var}/%{name} /bin/false +%_pre_useradd %{name} %{_var}/run/%{name}-daemon /bin/false +%_pre_useradd %{name}-autoipd %{_var}/lib/%{name}-autoipd /bin/false +# Correct home directories if users already exists (mga#10004) +if [ "`grep -E '^%{name}:' < /etc/passwd | cut -f6 -d:`" = %{_var}/avahi ]; then + %{_sbindir}/usermod -d %{_var}/run/%{name}-daemon %{name} +fi +if [ "`grep -E '^%{name}-autoipd:' < /etc/passwd | cut -f6 -d:`" = %{_var}/avahi ]; then + %{_sbindir}/usermod -d %{_var}/lib/%{name}-autoipd %{name}-autoipd +fi %postun +# Note postun_userdel is a dummy script. It does not do anything! %_postun_userdel %{name} %_postun_userdel %{name}-autoipd
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15650
:
6218
| 6222