After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 681132 - Add SELinux checks
Add SELinux checks
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-08-03 13:07 UTC by Marc-Andre Lureau
Modified: 2016-03-31 14:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
util: teach exec to optionally return stdout and stderr (2.16 KB, patch)
2012-08-03 13:07 UTC, Marc-Andre Lureau
committed Details | Review
util: add check_selinux_context_default (3.04 KB, patch)
2012-08-03 13:07 UTC, Marc-Andre Lureau
committed Details | Review
main: make --checks looks a big prettier (2.26 KB, patch)
2012-08-03 13:07 UTC, Marc-Andre Lureau
none Details | Review
main: make --checks looks a bit prettier (3.47 KB, patch)
2012-08-03 14:25 UTC, Marc-Andre Lureau
reviewed Details | Review

Description Marc-Andre Lureau 2012-08-03 13:07:00 UTC
There are still many users with invalid SELinux context. Let's try to
help them figure out. For now, this will only by run with --checks,
but we should probably consider adding a dialog, and eventually run
the restorecon command if they agree to do so.
Comment 1 Marc-Andre Lureau 2012-08-03 13:07:02 UTC
Created attachment 220238 [details] [review]
util: teach exec to optionally return stdout and stderr
Comment 2 Marc-Andre Lureau 2012-08-03 13:07:05 UTC
Created attachment 220239 [details] [review]
util: add check_selinux_context_default

Add a check for SELinux context
Comment 3 Marc-Andre Lureau 2012-08-03 13:07:09 UTC
Created attachment 220240 [details] [review]
main: make --checks looks a big prettier

- add leading • for each checks
- add report bug and home page links
Comment 4 Marc-Andre Lureau 2012-08-03 14:25:29 UTC
Created attachment 220247 [details] [review]
main: make --checks looks a bit prettier

- add leading • for each checks
- add report bug and home page links
Comment 5 Zeeshan Ali 2012-08-07 15:51:18 UTC
Review of attachment 220238 [details] [review]:

Looks good otherwise.

::: src/util.vala
@@ -467,2 +473,2 @@
         yield run_in_thread (() => {
-            exec_sync (argv);
+           exec_sync (argv, out std_output, out std_error);

why not just pass the out params directly here?
Comment 6 Zeeshan Ali 2012-08-07 15:56:07 UTC
Review of attachment 220239 [details] [review]:

Looks good. ACK if you have tested it against both failing and successful cases.
Comment 7 Zeeshan Ali 2012-08-07 15:59:57 UTC
Review of attachment 220247 [details] [review]:

Looks good otherwise.

::: src/wizard.vala
@@ +199,2 @@
         source.save ();
+        App.app.add_collection_source.begin (source);

Is this and other similar change related to this patch?
Comment 8 Zeeshan Ali 2012-08-07 16:00:10 UTC
Review of attachment 220247 [details] [review]:

Looks good otherwise.

::: src/wizard.vala
@@ +199,2 @@
         source.save ();
+        App.app.add_collection_source.begin (source);

Is this and other similar change related to this patch?
Comment 9 Marc-Andre Lureau 2012-08-07 16:16:24 UTC
Review of attachment 220238 [details] [review]:

::: src/util.vala
@@ -467,2 +473,2 @@
         yield run_in_thread (() => {
-            exec_sync (argv);
+           exec_sync (argv, out std_output, out std_error);

because of bug https://bugzilla.gnome.org/show_bug.cgi?id=681136
Comment 10 Marc-Andre Lureau 2012-08-07 16:17:54 UTC
Review of attachment 220247 [details] [review]:

::: src/wizard.vala
@@ +199,2 @@
         source.save ();
+        App.app.add_collection_source.begin (source);

ah right, I was wondering where that change went, sorry it should be seperate.
Comment 11 Zeeshan Ali 2012-08-07 16:21:55 UTC
(In reply to comment #9)
> Review of attachment 220238 [details] [review]:
> 
> ::: src/util.vala
> @@ -467,2 +473,2 @@
>          yield run_in_thread (() => {
> -            exec_sync (argv);
> +           exec_sync (argv, out std_output, out std_error);
> 
> because of bug https://bugzilla.gnome.org/show_bug.cgi?id=681136

Fair enough, please add a FIXME note there pointing to this bug so we remember to remove this workaround when that bug is fixed.
Comment 12 Marc-Andre Lureau 2012-08-07 17:20:22 UTC
Attachment 220238 [details] pushed as a894d50 - util: teach exec to optionally return stdout and stderr
Attachment 220239 [details] pushed as 50e4efa - util: add check_selinux_context_default
Attachment 220247 [details] pushed as abeb4a2 - main: make --checks looks a bit prettier