diff options
| author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-03-01 16:20:06 +0800 |
|---|---|---|
| committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-03-01 16:47:33 +0800 |
| commit | f3939db3efbaa5c9e45cfadb93bf216ce7f92506 (patch) | |
| tree | 91176193f7ae7cbd452a22b92abb51fca14404e8 | |
| parent | 178d0fbbb34f09162869d098d35352cc402308b6 (diff) | |
| download | meta-selinux-f3939db3efbaa5c9e45cfadb93bf216ce7f92506.tar.gz | |
bind: restore rndc.key security context
rndc.key would be labeled with wrong named_zone_t inherited from
/etc/bind while creating, so restorecon on it.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
| -rw-r--r-- | recipes-connectivity/bind/bind_9.8.1.bbappend | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/recipes-connectivity/bind/bind_9.8.1.bbappend b/recipes-connectivity/bind/bind_9.8.1.bbappend index 530f166..069aa84 100644 --- a/recipes-connectivity/bind/bind_9.8.1.bbappend +++ b/recipes-connectivity/bind/bind_9.8.1.bbappend | |||
| @@ -1,10 +1,13 @@ | |||
| 1 | PR .= ".1" | 1 | PR .= ".2" |
| 2 | 2 | ||
| 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 4 | 4 | ||
| 5 | SRC_URI += "file://volatiles.04_bind" | 5 | SRC_URI += "file://volatiles.04_bind" |
| 6 | 6 | ||
| 7 | do_install_append() { | 7 | do_install_append() { |
| 8 | install -d ${D}${sysconfdir}/default/volatiles | 8 | install -d ${D}${sysconfdir}/default/volatiles |
| 9 | install -m 0644 ${WORKDIR}/volatiles.04_bind ${D}${sysconfdir}/default/volatiles/volatiles.04_bind | 9 | install -m 0644 ${WORKDIR}/volatiles.04_bind ${D}${sysconfdir}/default/volatiles/volatiles.04_bind |
| 10 | |||
| 11 | sed -i '/^\s*\/usr\/sbin\/rndc-confgen/a\ | ||
| 12 | [ -x /sbin/restorecon ] && /sbin/restorecon /etc/bind/rndc.key' ${D}${sysconfdir}/init.d/bind | ||
| 10 | } | 13 | } |
