Displaying 4 results from an estimated 4 matches for "relabel_args".
2016 May 10
1
[PATCH] builder: run/schedule a SELinux relabel if needed
...hics \
--noreboot
+DO_RELABEL=1
+
source $(dirname "$0")/compress.sh $output
diff --git a/builder/website/compress.sh b/builder/website/compress.sh
index 2148804..4e09bf3 100644
--- a/builder/website/compress.sh
+++ b/builder/website/compress.sh
@@ -20,10 +20,26 @@
output=$1
+relabel_args=()
+
+if [ -n "$DO_RELABEL" ]; then
+ os_arch=$(uname -m)
+ guest_arch=$(virt-inspector -a "$output" | virt-inspector --xpath "string(/operatingsystems/operatingsystem/arch)")
+
+ if [ "$os_arch" = "$guest_arch" ] || [ "$os_arch"...
2016 Jul 13
6
[PATCH 0/5] Fix SELinux
We can use the setfiles(8) command to relabel the guest filesystem,
even though we don't have a policy loaded nor SELinux enabled in the
appliance kernel.
This also deprecates or removes the old and broken SELinux support.
This patch isn't quite complete - I would like to add some tests to
the new API. I'm posting here to garner early feedback.
Rich.
2016 Jul 14
10
[PATCH v2 0/7] Fix SELinux
v1 -> v2:
- Add simple test of the setfiles API.
- Use SELinux_relabel module in virt-v2v (instead of touch /.autorelabel).
- Small fixes.
Rich.
2016 Nov 28
2
[PATCH] builder: Rearrange how template-building scripts work.
...You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-# Common code which syspreps, sparsifies and compresses the templates.
-
-output=$1
-
-relabel_args=()
-
-if [ -n "$DO_RELABEL" ]; then
- relabel_args="--selinux-relabel"
-fi
-
-# Sysprep (removes logfiles and so on).
-virt-sysprep -a $output $relabel_args
-
-# Sparsify.
-mv $output $output.old
-virt-sparsify $output.old $output
-rm $output.old
-
-# Compress.
-xz --best --b...