Commit Graph

1209 Commits

Author SHA1 Message Date
Petr Lautrbach 9d9055ab45 policycoreutils-2.7-6.fc27
- sepolicy: Initialize policy.ports as a dict in generate.py
- gui/polgengui.py: Use stop_emission_by_name instead of emit_stop_by_name
- Minor update for bash completion
- semodule_package: fix semodule_unpackage man page (#1334834)
- gui/semanagePage: Close "edit" and "add" dialogues when successfull
- gui/fcontextPage: Set default object class in addDialog
- semanage/seobject.py: Fix undefined store check (#1559174)
2018-03-23 13:02:56 +01:00
Petr Lautrbach 90862d2288 Use shared repository for tests
https://fedoraproject.org/wiki/CI/Share_Test_Code
2018-02-23 12:51:39 +01:00
Petr Lautrbach f17067d7dd tests: Run linux-system-roles.selinux tests
Use tests from https://github.com/linux-system-roles/selinux.git
to check if an update doesn't break some basic SELinux Ansible
modules.
2018-02-23 12:51:39 +01:00
Petr Lautrbach 3a4bb1fb80 Add CI tests using the standard test interface
The playbook includes Tier1 level test cases that have been tested in
the following contexts and is passing reliably on Classic.
Test logs are stored in the Artifacts directory.

The following steps are used to execute the tests using the standard test interface:

Classic
    sudo ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS="" TEST_ARTIFACTS=$PWD/artifacts ansible-playbook --tags classic tests.yml

It's based on
https://src.fedoraproject.org/rpms/policycoreutils/pull-request/1 from Merlin Mathesius <merlinm@redhat.com>
2018-02-23 12:51:39 +01:00
Petr Lautrbach 480e112958 policycoreutils-2.7-4.fc27
- Rewrite selinux-polgengui to use Gtk3
- Drop python2 and gnome-python2 from gui Requires
2018-02-21 13:07:32 +01:00
Petr Lautrbach 174ae6acbb -gui requires gtk3 and python3-gobject at least 2018-02-21 09:55:15 +01:00
Petr Lautrbach 83644b8707 Drop python2 and gnome-python2 from gui Requires
It should not be needed anymore
2018-02-21 09:54:39 +01:00
Petr Lautrbach a7f12f35a5 gui: Several python 3 related fixes from fedora-selinux/selinux
- gui/polgengui.py: Fix sepolicy.generate import in polgengui.py
- gui/polgengui.py: Convert polgen.glade to Builder format polgen.ui
- python/sepolicy: Use list instead of map
- python/sepolicy: Do not use types.BooleanType
2018-02-21 09:53:56 +01:00
Petr Lautrbach d2208a6657 policycoreutils-2.7-4.fc27
- semanage: bring semanageRecords.set_reload back to seobject.py
(#1527745)
2017-12-20 10:51:45 +01:00
Petr Lautrbach cd8e1cd91a policycoreutils-2.7-3.fc27
- Own %%{pythonX_sitelib}/site-packages/sepolicy directories (#1522942)
2017-12-14 12:46:28 +01:00
Petr Lautrbach 93414c1c4f Own %{pythonX_sitelib}/site-packages/sepolicy directories
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1522942
2017-12-14 12:43:02 +01:00
Petr Lautrbach c83a9507f0 policycoreutils-2.7-2.fc27
- sepolicy: Fix sepolicy manpage.
- semanage: Update Infiniband code to work on python3
- semanage: Fix export of ibendport entries
- semanage: Enforce noreload only if it's requested by -N option
- semanage: Don't use global setup variable
- semanage: drop *_ini functions
- semanage: Enable listing file_contexts.homedirs
- semanage: make seobject.py backward compatible
- gui: remove mappingsPage
- gui: delete overridden definition of usersPage.delete()
- gui: fix parsing of "semodule -lfull" in tab Modules
- gui: remove the status bar
- sepolicy: support non-MLS policy in gui
- sepolicy: ignore comments and empty lines in file_contexts.subs_dist
- gui: port to Python 3 by migrating to PyGI
- sepolicy: do not fail when file_contexts.local or .subs do not exist
- restorecond: check write() and daemon() results
- sepolicy: remove stray space in section "SEE ALSO"
- sepolicy: support non-MCS policy in manpage
- sepolicy: support non-MLS policy in manpage
- sepolicy: fix misspelling of _ra_content_t suffix
- sepolicy: do not fail when file_contexts.local does not exist
2017-12-14 10:33:28 +01:00
Petr Lautrbach dfbde08bc9 policycoreutils-python[,3] require setools >= 4.1.1 2017-09-25 17:21:37 +02:00
Petr Lautrbach 0ea988e102 policycoreutils-2.7-1
- Update to upstream release 2017-08-04
- Move DBUS API from -gui to -dbus package
2017-08-07 17:15:23 +02:00
Fedora Release Engineering 19abd3c9a6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 06:15:18 +00:00
Florian Weimer 4626f61be9 Rebuild with binutils fix for ppc64le (#1475636) 2017-07-30 21:59:26 +02:00
Petr Lautrbach c7d01b205b policycoreutils-2.6-7
- Make 'sepolicy manpage' and 'sepolicy transition' faster
- open_init_pty: restore stdin/stdout to blocking upon exit
- fixfiles: do not dereference link files in tmp
- fixfiles: use a consistent order for options to restorecon
- fixfiles: don't ignore `-F` when run in `-C` mode
- fixfiles: remove bad modes of "relabel" command
- fixfiles: refactor into the `set -u` dialect
- fixfiles: if restorecon aborts, we should too
- fixfiles: usage errors are fatal
- fixfiles: syntax error
- fixfiles: remove two unused variables
- fixfiles: tidy up usage(), manpage synopsis
- fixfiles: deprecate -l option
- fixfiles: move logit call outside of redirected function
- fixfiles: fix logging about R/O filesystems
- fixfiles: clarify exclude_dirs()
- fixfiles: remove (broken) redundant code
2017-07-28 21:06:13 +02:00
Troy Dawson 25056c1087 Remove old, large, unused patch from git repo 2017-07-27 13:50:44 -07:00
Fedora Release Engineering 797c314efa - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 08:53:49 +00:00
Petr Lautrbach fa2a3b271b s/python-IPy-python3/python3-IPy/
https://github.com/fedora-python/taskotron-python-versions/issues/4
2017-05-30 08:52:11 +02:00
Petr Lautrbach b185f8151d policycoreutils-2.6-5
- semanage: Unify argument handling (#1398987)
- setfiles: set up a logging callback for libselinux
- setfiles: Fix setfiles progress indicator
- setfiles: stdout messages don't need program prefix
- setfiles: don't scramble stdout and stderr together (#1435894)
- restorecond: Decrease loglevel of termination message (#1264505)
- fixfiles should handle path arguments more robustly
- fixfiles: handle unexpected spaces in command
- fixfiles: remove useless use of cat (#1435894)
- semanage: Add checks if a module name is passed in (#1420707)
- semanage: fix export of fcontext socket entries (#1435127)
- selinux-autorelabel: remove incorrect redirection to /dev/null (#1415674)
2017-04-06 16:38:34 +02:00
Alan Jenkins db14db8479 selinux-autorelabel: remove incorrect redirection to /dev/null
This code is currently incorrect.  Currently redirecting `fixfiles` to
/dev/null will have very little effect.  Two messages will be suppressed,
but both the percentage progress indicator, and any errors from
the setfiles/restorecon binary will still be shown.

The fact that fixfiles redirected its log output to stdin (!) was purely
an implementation artefact.  It was used to write log messages even inside
shell functions whose output is captured e.g. `RESULT=$(shell_func)`.

When fixfiles is fixed to support output redirection normally, this code
would now behave incorrectly.  It would suppress all percentage progress
messages for this long-running process.

Signed-off-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
2017-04-06 13:46:25 +02:00
Petr Lautrbach 469f6b64e9 policycoreutils-2.6-4
- Fix selinux-polgengui (#1432337)
- sepolicy - fix obtaining domain name in HTMLManPages
2017-03-17 16:11:06 +01:00
Petr Lautrbach c12014f9e3 policycoreutils-2.6-3
- Fix several issues in gui and 'sepolicy manpage' (#1416372)
2017-02-28 22:06:48 +01:00
Petr Lautrbach fbd38097f4 Make changes according to Fedora Packaging Guidelines for Python
- drop python{,3} from BuildRequires
- use %{__python3} instead of python3

https://fedoraproject.org/wiki/Packaging:Python
2017-02-23 14:18:57 +01:00
Petr Lautrbach 6d99bda7c6 policycoreutils-2.6-1.1
- Update to upstream release 2016-10-14
2017-02-20 12:35:09 +01:00
Igor Gnatenko d6bd0d5a9b Rebuild for brp-python-bytecompile
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-02-15 17:57:09 +01:00
Fedora Release Engineering 3cb802ddd1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 07:43:21 +00:00
Petr Lautrbach 15fa2e5ee2 Own __pycache__ directories
Resolves: rhbz#1413003
2017-01-16 18:45:41 +01:00
Kevin Fenzi 2f945d420b Rebuild for python 3.6 2016-12-21 12:02:15 -07:00
Petr Lautrbach c54847bdaa policycoreutils-2.5-19
- seobject: Handle python error returns correctly
- policycoreutils/sepolicy/gui: fix current selinux state radiobutton
- policycoreutils: semodule_package: do not fail with an empty fc file
2016-12-01 20:57:07 +01:00
Petr Lautrbach 707dcc5ef3 policycoreutils-2.5-18
- Update translations (#1364114)
- Fix fcontextPage editing features (#1344842)
2016-11-22 17:19:41 +01:00
Petr Lautrbach 1888063970 Do not use python3 in python 2 directories 2016-10-04 08:45:20 +02:00
Petr Lautrbach 953350ddce policycoreutils-2.5-17
- sandbox: Use dbus-run-session instead of dbus-launch when available
- hll/pp: Change warning for module name not matching filename to match new behavior
- Remove LDFLAGS from CFLAGS
- sandbox: create a new session for sandboxed processes
- sandbox: do not try to setup directories without -X or -M
- sandbox: do not run xmodmap in a new X session
- sandbox: Use GObject introspection binding instead of pygtk2
- sandbox: fix file labels on copied files
- sandbox: tests - close stdout of p
- sandbox: tests - use sandbox from cwd
- audit2allow: tests should use local copy not system
- audit2allow: fix audit2why import from seobject
- audit2allow: remove audit2why so that it gets symlinked
- semanage: fix man page and help message for import option
- semanage: fix error message for fcontext -m
- semanage: Fix semanage fcontext -D
- semanage: Correct fcontext auditing
- semanage: Default serange to "s0" for port modify
- semanage: Use socket.getprotobyname for protocol
- semanage: fix modify action in node and interface
- fixfiles: Pass -n to restorecon for fixfiles check
- sepolicy: Check get_rpm_nvr_list() return value
- Don't use subprocess.getstatusoutput() in Python 2 code
- semanage: Add auditing of changes in records
- Remove unused 'q' from semodule getopt string
2016-10-04 08:45:20 +02:00
Petr Lautrbach 5e59af1d9e policycoreutils-2.5-16.fc26
- Remove unused autoconf files from po/
- Remove duplicate, empty translation files
- Rebuilt with libsepol-2.5-9, libselinux-2.5-11, libsemanage-2.5-7
2016-08-01 12:49:16 +02:00
Petr Lautrbach ad3893177f Fix sandbox python3 issue
Fixes: rhbz#1358138
2016-07-21 19:09:31 +02:00
Petr Lautrbach 380c7cbbab Fix the author in the changelog 2016-07-21 07:19:26 +02:00
Richard W.M. Jones 183d121f7f Use generator approach to fix autorelabel.
See:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/CHCEGB2RUPHFCE4FVGIRO3CJYGNS75T7/
2016-07-20 22:31:07 +02:00
Fedora Release Engineering 971f8c4099 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 08:20:48 +00:00
Petr Lautrbach 6bfc7cc0ba policycoreutils-2.5-12
- open_init_pty: Do not error on EINTR
- Fix [-s STORE] typos in semanage
- Update sandbox types in sandbox manual
- Update translations
2016-07-14 11:16:55 +02:00
Petr Lautrbach 62f824402e policycoreutils-2.5-11
- Convert sandbox to gtk-3 using pygi-convert.sh (#1343166)
2016-06-27 12:55:29 +02:00
Petr Lautrbach a29f8e0d18 policycoreutils-2.5-10
- Fix typos in semanage manpages
- Fix the documentation of -l,--list for semodule
- Minor fix in a French translation
- Fix the extract example in semodule.8
- Update sandbox.8 man page
- Remove typos from chcat --help
- sepolgen: Remove additional files when cleaning
2016-06-23 13:13:11 +02:00
Petr Lautrbach 6e4d1c4453 policycoreutils-2.5-9
- Fix multiple spelling errors
- Rebuild with libsepol-2.5-6

Conflicts: initscripts < 9.66
2016-05-11 10:51:15 +02:00
Petr Lautrbach 37f792eedc policycoreutils-2.5-8
- Rebuilt with libsepol-2.5-5
2016-05-02 10:10:53 +02:00
Petr Lautrbach 72f5beeec0 policycoreutils-2.5-7
- hll/pp: Warn if module name different than output filename
2016-04-29 18:09:09 +02:00
Petr Lautrbach 0921732e44 policycoreutils-2.5-6
- Ship selinux-autorelabel utility and systemd unit files (#1328825)
2016-04-25 09:48:08 +02:00
Petr Lautrbach 9753a77a76 Ship selinux-autorelabel utility and systemd unit files
initscripts package is being slowly removed so fedora-autorelabel
utility and systemd unit files need a new home.

At the same time, "fedora-" prefix is changed to general "selinux-".

/lib/systemd/fedora-autorelabel -> /usr/libexec/selinux/selinux-autorelabel
fedora-autorelabel.service -> selinux-autorelabel.service
fedora-autorelabel-mark.service -> selinux-autorelabel-mark.service

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1328825
2016-04-25 09:36:31 +02:00
Petr Lautrbach 6c6496a616 policycoreutils-2.5-5
- sepolgen: Add support for TYPEBOUNDS statement in INTERFACE policy
  files (#1319338)
2016-04-08 20:52:33 +02:00
Petr Lautrbach e41aa2fbd5 policycoreutils-2.5-4
- Add documentation for MCS separated domains
- Move svirt man page out of libvirt into its own
2016-03-18 20:36:47 +01:00
Petr Lautrbach 86e29572df policycoreutils-2.5-2
- policycoreutils: use python3 in chcat(#1318408)
2016-03-17 10:05:48 +01:00