diff --git a/xCAT-selinux/xcat.fc b/xCAT-selinux/xcat.fc index d69e58c9a5..9b24c4bdb3 100644 --- a/xCAT-selinux/xcat.fc +++ b/xCAT-selinux/xcat.fc @@ -16,5 +16,7 @@ /install(/.*)? gen_context(system_u:object_r:public_content_t,s0) # A rootimg keeps the labels of its own OS, so restorecon must not change them. -/install/netboot/[^/]+/[^/]+/[^/]+/rootimg(/.*)? <> -/install/netboot/[^/]+/[^/]+/[^/]+/rootimg-statelite(/.*)? <> +# genimage puts the tree at /rootimg, and rootimgdir can be at any +# depth under /install. +/install(/.*)?/rootimg(/.*)? <> +/install(/.*)?/rootimg-statelite(/.*)? <>