Patchwork [1/1] wic: Remove selinux_check()

login
register
mail settings
Submitter tom.zanussi@linux.intel.com
Date Oct. 24, 2013, 1:11 p.m.
Message ID <afa3e31d527432bf9ff8473d51528d9e204465ed.1382620128.git.tom.zanussi@linux.intel.com>
Download mbox | patch
Permalink /patch/60465/
State Accepted
Commit 12e81eceab9e0a483765566ad3791b14718195b5
Headers show

Comments

tom.zanussi@linux.intel.com - Oct. 24, 2013, 1:11 p.m.
This seems to be an obsolete checkt - we don't have any problems with
image creation under selinux, so remove this check.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
 scripts/lib/mic/conf.py | 4 ----
 1 file changed, 4 deletions(-)
tom.zanussi@linux.intel.com - Oct. 24, 2013, 1:21 p.m.
On Thu, 2013-10-24 at 08:11 -0500, Tom Zanussi wrote:
> This seems to be an obsolete checkt - we don't have any problems with
> image creation under selinux, so remove this check.
> 

Just noticed the typo, fixed in the branch.

Tom

> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
> ---
>  scripts/lib/mic/conf.py | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/scripts/lib/mic/conf.py b/scripts/lib/mic/conf.py
> index 58fad51..b850d80 100644
> --- a/scripts/lib/mic/conf.py
> +++ b/scripts/lib/mic/conf.py
> @@ -186,10 +186,6 @@ class ConfigMgr(object):
>                                                self.create['name_prefix'],
>                                                self.create['name_suffix'])
>  
> -        # check selinux, it will block arm and btrfs image creation
> -        misc.selinux_check(self.create['arch'],
> -                           [p.fstype for p in ks.handler.partition.partitions])
> -
>      def set_runtime(self, runtime):
>          if runtime not in ("bootstrap", "native"):
>              msger.error("Invalid runtime mode: %s" % runtime)

Patch

diff --git a/scripts/lib/mic/conf.py b/scripts/lib/mic/conf.py
index 58fad51..b850d80 100644
--- a/scripts/lib/mic/conf.py
+++ b/scripts/lib/mic/conf.py
@@ -186,10 +186,6 @@  class ConfigMgr(object):
                                               self.create['name_prefix'],
                                               self.create['name_suffix'])
 
-        # check selinux, it will block arm and btrfs image creation
-        misc.selinux_check(self.create['arch'],
-                           [p.fstype for p in ks.handler.partition.partitions])
-
     def set_runtime(self, runtime):
         if runtime not in ("bootstrap", "native"):
             msger.error("Invalid runtime mode: %s" % runtime)