SELinux policy core utilities
Go to file
2023-02-24 13:02:01 +01: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
gating.yaml Enable gating on tests 2020-11-20 15:10:04 +01:00
policycoreutils.spec SELinux userspace 3.5 release 2023-02-24 13:02:01 +01: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 StandardInput=tty when AUTORELABEL=0 2023-02-08 11:27:20 +01: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