SELinux policy core utilities
Go to file
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
.fmf run tests via TMT/FMF 2022-11-10 17:21:15 +01:00
plans run tests via TMT/FMF 2022-11-10 17:21:15 +01:00
.gitignore SELinux userspace 3.5 release 2023-02-24 13:02:01 +01:00
0001-sandbox-add-reset-to-Xephyr-as-it-works-better-with-.patch SELinux userspace 3.5-rc3 release 2023-02-13 17:02:32 +01:00
0002-Don-t-be-verbose-if-you-are-not-on-a-tty.patch SELinux userspace 3.5-rc3 release 2023-02-13 17:02:32 +01:00
0003-sepolicy-generate-Handle-more-reserved-port-types.patch SELinux userspace 3.5-rc3 release 2023-02-13 17:02:32 +01:00
0004-sandbox-Use-matchbox-window-manager-instead-of-openb.patch SELinux userspace 3.5-rc3 release 2023-02-13 17:02:32 +01:00
0005-Use-SHA-2-instead-of-SHA-1.patch SELinux userspace 3.5-rc3 release 2023-02-13 17:02:32 +01:00
0006-python-chcat-Improve-man-pages.patch policycoreutils-3.5-5 2023-06-23 11:20:28 +02:00
0007-python-audit2allow-Add-missing-options-to-man-page.patch policycoreutils-3.5-5 2023-06-23 11:20:28 +02:00
0008-python-semanage-Improve-man-pages.patch policycoreutils-3.5-5 2023-06-23 11:20:28 +02:00
0009-python-audit2allow-Remove-unused-debug-option.patch policycoreutils-3.5-5 2023-06-23 11:20:28 +02:00
0010-policycoreutils-Add-examples-to-man-pages.patch policycoreutils-3.5-5 2023-06-23 11:20:28 +02:00
0011-python-sepolicy-Improve-man-pages.patch policycoreutils-3.5-5 2023-06-23 11:20:28 +02:00
0012-sandbox-Add-examples-to-man-pages.patch policycoreutils-3.5-5 2023-06-23 11:20:28 +02:00
0013-python-sepolicy-Fix-template-for-confined-user-polic.patch policycoreutils-3.5-5 2023-06-23 11:20:28 +02:00
0014-python-sepolicy-Fix-spec-file-dependencies.patch policycoreutils-3.5-5 2023-06-23 11:20:28 +02:00
0015-python-improve-format-strings-for-proper-localizatio.patch policycoreutils-3.5-7 2023-08-01 11:38:39 +02:00
0016-python-Drop-hard-formating-from-localized-strings.patch policycoreutils-3.5-7 2023-08-01 11:38:39 +02:00
0017-semanage-Drop-unnecessary-import-from-seobject.patch policycoreutils-3.5-7 2023-08-01 11:38:39 +02:00
0018-python-update-python.pot.patch policycoreutils-3.5-7 2023-08-01 11:38:39 +02:00
0019-sepolicy-port-to-dnf4-python-API.patch policycoreutils-3.5-7 2023-08-01 11:38:39 +02:00
gating.yaml Enable gating on tests 2020-11-20 15:10:04 +01:00
policycoreutils.spec policycoreutils-3.5-7 2023-08-01 11:38:39 +02:00
README.translations Update README.translations for use with Weblate 2023-01-20 15:52:53 +01:00
selinux-autorelabel Run autorelabel in parallel by default 2022-07-27 12:03:59 +02:00
selinux-autorelabel-generator.sh Use /bin/bash instead of /bin/sh 2023-05-30 10:28:15 +00:00
selinux-autorelabel-mark.service Do not use symlinks to enable selinux-autorelabel-mark.service 2018-07-16 13:35:12 +02:00
selinux-autorelabel.service Configure autorelabel service to output to journal and to console if set 2019-11-14 10:01:54 +01:00
selinux-autorelabel.target Use generator approach to fix autorelabel. 2016-07-20 22:31:07 +02:00
sepolicy-help.tgz Fixes for sepolicy gui 2013-10-02 16:25:25 -04:00
sepolicy-icons.tgz Speed up startup time of sepolicy gui 2013-11-15 09:06:16 -05:00
sources SELinux userspace 3.5 release 2023-02-24 13:02:01 +01:00
system-config-selinux.png Fix empty system-config-selinux.png 2013-02-12 16:16:02 -05:00

SELinux translations currently live in the following locations:

- https://translate.fedoraproject.org/projects/selinux/
  - contains 2 versions of translatable strings rhel8 (latest RHEL 8 release) and main (Fedora and RHEL 9)
  - maintains large number of languages (several of which do not actually contain any translated strings)
  - updated by community and partially by RH localization effort

- SELinux source repositories (periodicaly updated from weblate)
  - https://github.com/fedora-selinux/selinux
    - used for Fedora, latest CentOS and RHEL 9
  - https://github.com/SELinuxProject/selinux
    - upstream repository

How to update source files on weblate:
  $ git clone git@github.com:fedora-selinux/selinux.git
  $ cd selinux
  # generate new potfiles
  $ for p in policycoreutils python gui sandbox; do
    cd $p/po
    rm $p.pot
    make $p.pot
    sed -i 's/charset=CHARSET/charset=UTF-8/g' $p.pot
    cd -
    done
  # https://translate.fedoraproject.org/projects/selinux/policycoreutils/en/
  # Files -> Upload translations
  # Repeat the process for python, gui and sandbox
  # or use weblate command line tool (get your API key at https://translate.fedoraproject.org/accounts/profile/#api):
  $ for p in policycoreutils python gui sandbox; do
    wlc --key <API key> --url https://translate.fedoraproject.org/api/ upload --input $p/po/$p.pot selinux/$p/en --method=source
    done

How to pull new translations from weblate
  $ git clone git@github.com:fedora-selinux/selinux.git
  # https://translate.fedoraproject.org/projects/selinux/policycoreutils
  # Files -> Download translation files as ZIP file (save in selinux source directory)
  # Repeat the process for python, gui and sandbox
  # or use weblate command line tool
  $ for p in policycoreutils python gui sandbox; do
    wlc --key <API key> --url https://translate.fedoraproject.org/api/ download selinux/$p --output selinux
    done
  # unzip archives
  $ cd selinux
  $ for p in policycoreutils python gui sandbox; do
    unzip -o selinux-$p.zip -d ..
    rm selinux-$p.zip
    done
  $ git add .
  $ git commit