2666b4 Use static uid/gid for systemd-{resolve,network}

Authored and Committed by Michal Sekletar 8 years ago
1 file changed. 4 lines added. 4 lines removed.
    Use static uid/gid for systemd-{resolve,network}
    
    Clearly we have static uid/gid allocated so let's actually use them.
    
    egrep 'systemd-resolve|network' /usr/share/doc/setup/uidgid
    systemd-network 192     192     /               /sbin/nologin   systemd
    systemd-resolve 193     193     /               /sbin/nologin   systemd
    
        
file modified
+4 -4
systemd.spec CHANGED
@@ -357,10 +357,10 @@ getent group input >/dev/null 2>&1 || groupadd -r input >/dev/null 2>&1 || :
357
357
getent group systemd-journal >/dev/null 2>&1 || groupadd -r -g 190 systemd-journal 2>&1 || :
358
358
getent group systemd-timesync >/dev/null 2>&1 || groupadd -r systemd-timesync 2>&1 || :
359
359
getent passwd systemd-timesync >/dev/null 2>&1 || useradd -r -l -g systemd-timesync -d / -s /sbin/nologin -c "systemd Time Synchronization" systemd-timesync >/dev/null 2>&1 || :
360
- getent group systemd-network >/dev/null 2>&1 || groupadd -r systemd-network 2>&1 || :
361
- getent passwd systemd-network >/dev/null 2>&1 || useradd -r -l -g systemd-network -d / -s /sbin/nologin -c "systemd Network Management" systemd-network >/dev/null 2>&1 || :
362
- getent group systemd-resolve >/dev/null 2>&1 || groupadd -r systemd-resolve 2>&1 || :
363
- getent passwd systemd-resolve >/dev/null 2>&1 || useradd -r -l -g systemd-resolve -d / -s /sbin/nologin -c "systemd Resolver" systemd-resolve >/dev/null 2>&1 || :
360
+ getent group systemd-network >/dev/null 2>&1 || groupadd -r -g 192 systemd-network 2>&1 || :
361
+ getent passwd systemd-network >/dev/null 2>&1 || useradd -r -u 192 -l -g systemd-network -d / -s /sbin/nologin -c "systemd Network Management" systemd-network >/dev/null 2>&1 || :
362
+ getent group systemd-resolve >/dev/null 2>&1 || groupadd -r -g 193 systemd-resolve 2>&1 || :
363
+ getent passwd systemd-resolve >/dev/null 2>&1 || useradd -r -u 193 -l -g systemd-resolve -d / -s /sbin/nologin -c "systemd Resolver" systemd-resolve >/dev/null 2>&1 || :
364
364
365
365
%post
366
366
systemd-machine-id-setup >/dev/null 2>&1 || :