Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 193157 - Review Request: system-config-selinux
Summary: Review Request: system-config-selinux
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: FE-ACCEPT
TreeView+ depends on / blocked
 
Reported: 2006-05-25 18:11 UTC by Daniel Walsh
Modified: 2013-01-10 01:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-15 17:00:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Walsh 2006-05-25 18:11:57 UTC
Spec URL: ftp://people.redhat.com/dwalsh/SELinux/system-config-selinux.spec
SRPM URL: ftp://people.redhat.com/dwalsh/SELinux/system-config-selinux-0.0.1-1.src.rpm
Description: system-config-selinux is a gui front end to the semanage tool. This tool allows you to configure all parts of the SELinux environment.

Comment 1 Jesse Keating 2006-05-25 18:41:19 UTC
Needswork:
- Hardset Requires, can't you just let rpm figure that out in the build, it
almost always gets it right.
- #Replace the files line with the one commented out when translations are done
%files
#%files   The two lines are the same....
- desktop file present but not installed correctly.  Check out
http://fedoraproject.org/wiki/Packaging/Guidelines#desktop for the desktop stuff.

rpmlint is silent on the srpm and the noarch.rpm, so thats good.

Comment 2 Paul Howarth 2006-05-26 14:51:01 UTC
Would it not be possible for Red Hat-internal projects like this to have their
own mini-homepage so that URL: tags of http://www.redhat.com/ and Source0: tags
that aren't full URLs could be avoided?

Perhaps the spec file template could be updated to use the more modern "make
DESTDIR=${RPM_BUILD_ROOT}" style instead of "%makeinstall"?

/usr/share/system-config-selinux/semanagegui.py
and
/usr/share/system-config-selinux/system-config-selinux.py

have shellbangs:
#!/usr/bin/python2

which lead to bogus dependencies on /usr/bin/python2, which make the package
uninstallable. Since at least the latter needs to be directly executable, it
should have a shellbang pointing to /usr/bin/python

It would be nice if the .pyo files were %ghosted, as is the usual practice these
days.

"manageing" in %description should be "managing"

Regarding Comment #1, which Hardset Requires are you referring to? I can only
see the usermode dep, and that's needed.


Comment 3 Paul Howarth 2006-05-26 14:56:34 UTC
(In reply to comment #2)
> /usr/share/system-config-selinux/semanagegui.py
> and
> /usr/share/system-config-selinux/system-config-selinux.py
> 
> have shellbangs:
> #!/usr/bin/python2
> 
> which lead to bogus dependencies on /usr/bin/python2, which make the package
> uninstallable. Since at least the latter needs to be directly executable, it
> should have a shellbang pointing to /usr/bin/python

Please forget I said this nonsense! Whoops.




Comment 4 Jesse Keating 2006-05-26 15:14:28 UTC
One would wager that rpm macros need to be updated for %makeinstall if it is not
'modern' enough.

The previous spec had:

Requires: gnome-python2, pygtk2, pygtk2-libglade, gnome-python2-canvas
Requires: policycoreutils
Requires: rhpl >= 0.148.2 usermode
Requires: python >= 2.3

These have been removed, but the version wasn't updated, nor was made mention
that this change had happened.

The other NEEDSWORK are still needed.

Comment 5 Paul Howarth 2006-05-26 15:29:59 UTC
(In reply to comment #4)
> One would wager that rpm macros need to be updated for %makeinstall if it is not
> 'modern' enough.

Not sure that's good idea. Most packages will work with either approach, but
some will depend on the way one or the other works, and will fail with the
alternative approach.

> The previous spec had:
> 
> Requires: gnome-python2, pygtk2, pygtk2-libglade, gnome-python2-canvas
> Requires: policycoreutils
> Requires: rhpl >= 0.148.2 usermode
> Requires: python >= 2.3

I wonder if it was a good idea to remove these since none of these deps (even
the python(abi) = 2.4 dep that I'd expect) have been found automatically by rpm.

> These have been removed, but the version wasn't updated, nor was made mention
> that this change had happened.

Hmm, not good. Please update the release tag whenever a change is made to the
package, so it's easy to tell which comments refer to which version of the package.




Comment 6 Daniel Walsh 2006-05-26 15:33:03 UTC
Should the python code be
#!/usr/bin/python

Comment 7 Jesse Keating 2006-05-26 15:40:12 UTC
Looks like our rpm autodetection of deps doesn't work on python scripts.  Sorry
for the noise Dan, you should put those deps back.  /me wonders if anybody is
working on making rpm autodetect python deps.

/usr/bin/python2 would work, it ensures you're using at least python 2.x

Comment 8 Daniel Walsh 2006-05-26 15:53:23 UTC
Back to the future.
Updated to 0.0.3

Spec URL: ftp://people.redhat.com/dwalsh/SELinux/system-config-selinux.spec
SRPM URL:
ftp://people.redhat.com/dwalsh/SELinux/system-config-selinux-0.0.3-1.src.rpm
Description: system-config-selinux is a gui front end to the semanage tool. This
tool allows you to configure all parts of the SELinux environment.

Comment 9 Jesse Keating 2006-05-26 16:51:18 UTC
Almost there (;

Now we're just missing a BuildRequires: on desktop-file-utils (and a changelog
to match the evr)

Comment 10 Dennis Gilmore 2006-05-26 19:59:43 UTC
Trying to run 
system-config-selinux-0.0.3-1

# system-config-selinux
Traceback (most recent call last):
  File "/usr/sbin/system-config-selinux", line 36, in ?
    import fcontextPage
  File "/usr/share/system-config-selinux/fcontextPage.py", line 26, in ?
    from avc import context
ImportError: No module named avc

looks like a missing requires

Comment 11 Paul Howarth 2006-05-26 20:19:27 UTC
(In reply to comment #10)
> Trying to run 
> system-config-selinux-0.0.3-1
> 
> # system-config-selinux
> Traceback (most recent call last):
>   File "/usr/sbin/system-config-selinux", line 36, in ?
>     import fcontextPage
>   File "/usr/share/system-config-selinux/fcontextPage.py", line 26, in ?
>     from avc import context
> ImportError: No module named avc
> 
> looks like a missing requires

I think policycoreutils should provide that.

Comment 12 Jesse Keating 2006-06-06 19:07:16 UTC
Where do we stand on this Dan?

Comment 13 Daniel Walsh 2006-06-06 20:20:24 UTC
Updated to 0.0.4

Spec URL: ftp://people.redhat.com/dwalsh/SELinux/system-config-selinux.spec
SRPM URL:
ftp://people.redhat.com/dwalsh/SELinux/system-config-selinux-0.0.4-1.src.rpm
Description: system-config-selinux is a gui front end to the semanage tool. This
tool allows you to configure all parts of the SELinux environment.

Comment 14 Jesse Keating 2006-06-06 21:44:18 UTC
Add missing BuildRequires: desktop-file-utils and I think we're good.  I'll
pre-approve.

Now you just need Nottings' signoff for being in Core, and then I need to know
if this needs changes in Comps and/or anaconda.

Comment 15 Bill Nottingham 2006-06-07 15:21:31 UTC
Random comments (outside of any signoff):
- the logging button doesn't work
- dies pretty horribly in a non-SELinux environment
- could probably use some GTK love (tab spacing, selector width, etch)
- python(abi) deps come from files in /usr/lib/python<ver>; otherwise, you
  don't get them

I don't really have any objections to this being in Core. I wonder if in the
future moving to some more task-specific options, rather than a raw listing of
booleans, might be better. Manage->Policy looks pretty scary to anyone who
doesn't have any deep knowledge of policy.




Comment 16 Bill Nottingham 2006-06-07 15:25:57 UTC
Thinking more about this... do we have some designer feedback on this? What
specifically are we trying to solve? I'm not sure 'wrap sesetbool' is the goal
we should be shooting for.

Comment 17 Daniel Walsh 2006-06-07 15:33:30 UTC
To your first Messsage:

- the logging button doesn't work
Yes these are features I was hoping for upstream to help
- dies pretty horribly in a non-SELinux environment
That Needs to be fixed.
- could probably use some GTK love (tab spacing, selector width, etch)
Yes.  Again hoping for patches from upstream.
- python(abi) deps come from files in /usr/lib/python<ver>; otherwise, you
  don't get them
How do I change this.

This tool was basically thrown together as GUI to do semanage functionality, so
it is pretty primitive.  Problem is I never work on it, since It is near the
bottom of the priority list.  I feel if I make it public, I might get some
opensource ideas/code/patches on how to fix it.

The first screen, is basically stopen from system-config-securitylevel/SELinux
tab.  The original idea was to get human translatable descriptions of the
booleans to allow Adminst to find logical booleans.  We are building new tools
to react to AVC messages and suggest booleans to be set.  

So if you setup your ftp server to allow local logins, but do not turn on the
appropriate SELinux booleans.  We will catch the first AVC message and send a
message to the user suggesting that they turn the boolean on.

Dan

Comment 18 Bill Nottingham 2006-06-07 18:31:25 UTC
Hm, I suspect this may be better for extras in the short term, then.

Instead of saying "you should turn on this boolean", wny not go the next step
and just have a "Shoud we allow this [ ] No [ ] Allow local ftp logins" box, and
sidestep the tool initially?

Comment 19 Jesse Keating 2006-06-14 20:50:51 UTC
------- Additional Comments From jkeating  2006-06-11 10:35 EST -------
Since Bill thinks this is for Extras, I'll re-block on FE-ACCEPT since it passed
review.  Dan, do you currently have sponsership within Extras yet?




------- Additional Comments From dwalsh  2006-06-12 08:01 EST -------
No, How do I go about getting it?

Comment 20 Jesse Keating 2006-06-14 20:52:34 UTC
http://fedoraproject.org/wiki/Extras/Contributors  <-- follow through there.

Comment 21 Jesse Keating 2006-06-26 17:19:54 UTC
Dan is now a sponsored Extras contributor.  Please close this bug when you've
released system-config-selinux into Extras.

Comment 22 Dennis Gilmore 2006-12-01 04:33:34 UTC
ping on this

Comment 23 Daniel Walsh 2006-12-01 16:48:32 UTC
This should be removed, since rather than make this a new package, I added it to
policycoreutils.  policycoreutils-gui to be precise.  It was using all of the
underlying python code for semanage, and getting translations to work was going
to be a hassle.  


Note You need to log in before you can comment on or make changes to this bug.