Commit graph

1,393 commits

Author SHA1 Message Date
Petr Lautrbach
56091d64c2 policycoreutils-3.7-8
- Fix `audit2llow -v` (bz#2361279)
2025-04-23 13:19:48 +02:00
Petr Lautrbach
c3420615fe Make rpm a weak dependency
The goal is to allow systems based on bootc without rpm installed.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2338647
2025-01-28 09:26:10 +01:00
Petr Lautrbach
dd3e42f544 policycoreutils-3.7-6
Use upstream version of "sepolgen-ifgen: allow M4 escaped filenames"

The original version used in Fedora used different escape mechanism
than it's used in Fedora selinux-policy
2024-12-19 15:44:31 +01:00
Petr Lautrbach
2265bc4616 policycoreutils-3.7-5
- fixfiles: use `grep -F` when search in mounts (bz#2323728)

[skip changelog]
2024-11-13 18:24:25 +01:00
Petr Lautrbach
f08722bf2a fixfiles: use grep -F when search in mounts (bz#2323728) 2024-11-13 18:17:15 +01:00
Petr Lautrbach
07240ecb02 sepolgen-ifgen: allow M4 escaped filenames
When a file name in type transition rule used in an interface is same as
a keyword, it needs to be M4 escaped so that the keyword is not expanded
by M4, e.g.

-	filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, "interface")
+	filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, "``interface''")

But sepolgen-ifgen could not parse such string:

    # sepolgen-ifgen
    Illegal character '`'

This change allows M4 escaping inside quoted strings and fixed described
problem.

https://bugzilla.redhat.com/show_bug.cgi?id=2254206
2024-08-20 11:02:43 +02:00
Fedora Release Engineering
345af02a21 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 08:13:40 +00:00
Zbigniew Jędrzejewski-Szmek
b91c86874b Rebuilt for the bin-sbin merge
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
2024-07-09 13:47:32 +02:00
Petr Lautrbach
853954a187 Move changelog to changelog and use %autochangelog
https://docs.pagure.org/Fedora-Infra.rpmautospec/autochangelog.html

`rpmautospec generate-changelog` can be used to preview how the
generated changelog will look

[skip changelog]
2024-06-27 18:02:27 +02:00
Petr Lautrbach
0af2af4e05 Verify upstream tarball signature
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_source_file_verification
2024-06-27 18:00:01 +02:00
Petr Lautrbach
4c447e2cc8 SELinux userspace 3.7 release 2024-06-27 17:47:47 +02:00
Python Maint
6b350d55f4 Rebuilt for Python 3.13 2024-06-07 08:34:19 +02:00
Petr Lautrbach
303ec7f9f8 policycoreutils-3.6-4
- Add Wayland support
2024-05-15 19:01:47 +02:00
Petr Lautrbach
75a6e9fab4 sandbox: Add support for Wayland
- use XWayland for X application if it's run in Wayland session
- run Wayland apps directly if it's run in Wayland session
- add sandbox -Y option to run run Wayland application
2024-05-15 19:01:47 +02:00
Petr Lautrbach
8cc9f3dabd Limit sandbox dependencies RHEL > 9 2024-05-15 19:00:57 +02:00
Petr Lautrbach
2b61e9ad2c Limit sandbox dependencies RHEL > 9 2024-05-09 15:57:43 +02:00
Zbigniew Jędrzejewski-Szmek
7ebfa734bd Prepare for bin-sbin merge
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin

- do not hardcode "/usr/sbin" in most places, use the macro instead.
- fix build when %_sbindir==%_bindir.
- add compat Provides for Requires in other packages. Rely on
  filesystem creating symlinks for us.

This commit makes things compatible with the state before and after
the merge.
2024-04-11 10:37:00 +02:00
Fedora Release Engineering
bc27ad616a Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 23:53:50 +00:00
Fedora Release Engineering
8afcf5f068 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 22:06:51 +00:00
Petr Lautrbach
0b9f7c1112 sandbox to require xorg only in Fedora and RHEL <= 9 2023-12-14 18:08:50 +01:00
Petr Lautrbach
99b3f5a5d3 SELinux userspace 3.6 release 2023-12-14 17:52:44 +01:00
Petr Lautrbach
e8ba46eae6 SELinux userspace 3.6-rc2 release 2023-11-23 17:45:19 +01:00
Petr Lautrbach
907549e21f SELinux userspace 3.6-rc1 release 2023-11-14 20:44:51 +01:00
Petr Lautrbach
4b1f77eef9 policycoreutils-3.5-8
- Update translations
  https://translate.fedoraproject.org/projects/selinux/
2023-10-30 16:18:33 +01:00
Petr Lautrbach
05444f27d0 policycoreutils-3.5-7
- python: improve format strings for proper localization
- python: Drop hard formating from localized strings
- sepolicy: port to dnf4 python API (rhbz#2209404)
2023-08-01 11:38:39 +02:00
Fedora Release Engineering
aa0a78d0f1 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 06:01:10 +00:00
Vit Mojzis
21f11b304c policycoreutils-3.5-5
- python/sepolicy: Fix spec file dependencies
- python/sepolicy: Fix template for confined user policy modules
- Improve man pages and add examples

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2023-06-23 11:20:28 +02:00
Python Maint
ac0a1ffe5c Rebuilt for Python 3.12 2023-06-13 20:25:18 +02:00
Petr Lautrbach
28f9992604 Use /bin/bash instead of /bin/sh
Fixes:

$ shellcheck -S warning selinux-autorelabel-generator.sh

In selinux-autorelabel-generator.sh line 22:
    source /etc/selinux/config
    ^------------------------^ SC3046 (warning): In POSIX sh, 'source' in place of '.' is undefined.

For more information:
  https://www.shellcheck.net/wiki/SC3046 -- In POSIX sh, 'source' in place of...

https://bugzilla.redhat.com/show_bug.cgi?id=2210593
2023-05-30 10:28:15 +00:00
Miro Hrončok
3cac2f0428 Fix build with pip 23.1.2+
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2209016
2023-05-26 11:27:31 +02:00
Tomas Popela
8acd4a7172 Drop unused BR on dbus-glib-devel and explicitly BR glib2-devel
The project has moved away from dbus-glib in version 3.2[0] and the BR
is not needed at all. Explicitly add the glib2-devel to BR to fix the
build after this change (it got there previously through
dbus-glib-devel).

[0] - 252925ccdf
2023-05-10 14:38:07 +02:00
Petr Lautrbach
e12fe0e4d9 SELinux userspace 3.5 release 2023-02-24 13:02:01 +01:00
Petr Lautrbach
80ecbcb7ea SELinux userspace 3.5-rc3 release 2023-02-13 17:02:32 +01:00
Petr Lautrbach
6da7ac70cd policycoreutils-3.5-0.rc2.3
- Attach tty to selinux-autorelabel.service when AUTORELABEL=0
2023-02-08 11:35:14 +01:00
Petr Lautrbach
0d980e2bff Use StandardInput=tty when AUTORELABEL=0
selinux-autorelabel service can be configured to drop to a shell to allow
administrator to manually relabel a filesystem, see selinux_config(5). In
this case, the service needs to have a tty attached to stdin. Given that
tty should not be attached to the service by default, see
https://bugzilla.redhat.com/show_bug.cgi?id=1634661 , the
selinux-autorelabel-generator.sh will configure the service to attach
tty only if AUTORELABEL=0

Resolves: rhbz#2165508
2023-02-08 11:27:20 +01:00
Vit Mojzis
df8ecd9392 policycoreutils-3.5-0.rc2.2
- python/sepolicy: Cache conditional rule queries
2023-01-30 19:03:50 +01:00
Vit Mojzis
05a6b63e4d Update README.translations for use with Weblate
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2023-01-20 15:52:53 +01:00
Fedora Release Engineering
a1ed6da384 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 10:02:43 +00:00
Petr Lautrbach
9006a129ff SELinux userspace 3.5-rc2 release 2023-01-16 12:54:23 +01:00
Petr Lautrbach
9bbf1ed093 Drop pathfix
All necessary changes were applied upstream.
2022-12-27 11:20:38 +01:00
Petr Lautrbach
9c3b4420da policycoreutils-3.5-0.rc1.1
- SELinux userspace 3.5-rc1 release
2022-12-27 11:18:52 +01:00
Lumir Balhar
8d6bfd9e4e Change location of pathfix.py
For more info see https://fedoraproject.org/wiki/Changes/Python3.12#pathfix.py_tool_will_be_removed
2022-11-22 10:17:57 +00:00
Petr Lautrbach
420643f434 python3-policycoreutils requires python3-distro 2022-11-21 17:38:59 +01:00
Petr Lautrbach
577b79db7e policycoreutils-3.4-7
- Rebase on upstream f56a72ac9e86
- sepolicy: fix sepolicy manpage -w
- sandbox: add -R option to alternate XDG_RUNTIME_DIR
- Remove dependency on the Python module distutils
2022-11-21 16:06:48 +01:00
Petr Lautrbach
f63d7fa68f Drop obsolete information from README.translation 2022-11-16 11:19:08 +01:00
Petr Lautrbach
36b92b86ad Drop unused files 2022-11-16 11:18:37 +01:00
Petr Lautrbach
b82a2a44d7 run tests via TMT/FMF 2022-11-10 17:21:15 +01:00
Petr Lautrbach
603c2165fd Migrate License tag to SPDX
https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1
2022-11-09 17:24:08 +01:00
Petr Lautrbach
c3299a8a50 policycoreutils-3.4-6
- Run autorelabel in parallel by default
  https://fedoraproject.org/wiki/Changes/SELinux_Parallel_Autorelabel
2022-08-02 09:41:21 +02:00
Petr Lautrbach
24691294b1 Run autorelabel in parallel by default
https://fedoraproject.org/wiki/Changes/SELinux_Parallel_Autorelabel
2022-07-27 12:03:59 +02:00