diff options
| author | Igor Pashev <pashev.igor@gmail.com> | 2013-03-23 18:54:07 +0000 |
|---|---|---|
| committer | Igor Pashev <pashev.igor@gmail.com> | 2013-03-23 18:54:07 +0000 |
| commit | 1af09fca9913903e6b7eb1dcfdea173edf54249a (patch) | |
| tree | d8549b25567f240c5566fdfd1b157b68824d4570 | |
| parent | f5f158b74845ef50d77c3bb6cddb3c2db6135f5b (diff) | |
| download | illumos-packaging-1af09fca9913903e6b7eb1dcfdea173edf54249a.tar.gz | |
dladm (2.10-4) unstable; urgency=low
* Make sure /etc/dladm has proper owner (dladm:netadm)
and permissions in postinst
| -rw-r--r-- | dladm/debian/changelog | 7 | ||||
| -rw-r--r-- | dladm/debian/dladm.postinst | 20 |
2 files changed, 24 insertions, 3 deletions
diff --git a/dladm/debian/changelog b/dladm/debian/changelog index 4571017..b7f57cd 100644 --- a/dladm/debian/changelog +++ b/dladm/debian/changelog @@ -1,3 +1,10 @@ +dladm (2.10-4) unstable; urgency=low + + * Make sure /etc/dladm has proper owner (dladm:netadm) + and permissions in postinst + + -- Igor Pashev <pashev.igor@gmail.com> Sat, 23 Mar 2013 18:20:01 +0000 + dladm (2.10-3) unstable; urgency=low * Build and package dlstat diff --git a/dladm/debian/dladm.postinst b/dladm/debian/dladm.postinst index 177aa08..585cb6d 100644 --- a/dladm/debian/dladm.postinst +++ b/dladm/debian/dladm.postinst @@ -1,10 +1,24 @@ #!/bin/sh set -e -set -u -if [ ! -e /etc/dladm ]; then - mkdir /etc/dladm || true +configure() { + if [ ! -e /etc/dladm ]; then + mkdir /etc/dladm + fi + + # dladm user and netadm group are system ones, + # defined in base-passwd. It is specific to illumos. + chown -R dladm:netadm /etc/dladm + chmod 0755 /etc/dladm + + if ls /etc/dladm/* >/dev/null 2>&1; then + chmod 0644 /etc/dladm/* + fi +} + +if [ "$1" = configure ]; then + configure fi exit 0 |
