SELinux policy core utilities
Go to file
Vit Mojzis a03a412b97 policycoreutils-2.9-26
- python/semanage: Allow modifying records on "add" (RHEL-28167)
- python/semanage: Do not sort local fcontext definitions (RHEL-24461)

Resolves: RHEL-28167, RHEL-24461
2024-04-09 17:16:36 +02:00
tests re-import sources as agreed with the maintainer 2023-07-11 11:28:11 +02:00
.gitignore re-import sources as agreed with the maintainer 2023-07-11 11:28:11 +02:00
0001-gui-Install-polgengui.py-to-usr-bin-selinux-polgengu.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0002-gui-Install-.desktop-files-to-usr-share-applications.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0003-sandbox-add-reset-to-Xephyr-as-it-works-better-with-.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0004-Fix-STANDARD_FILE_CONTEXT-section-in-man-pages.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0005-If-there-is-no-executable-we-don-t-want-to-print-a-p.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0006-Simplication-of-sepolicy-manpage-web-functionality.-.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0007-We-want-to-remove-the-trailing-newline-for-etc-syste.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0008-Fix-title-in-manpage.py-to-not-contain-online.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0009-Don-t-be-verbose-if-you-are-not-on-a-tty.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0010-sepolicy-Drop-old-interface-file_type_is_executable-.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0011-sepolicy-Another-small-optimization-for-mcs-types.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0012-Move-po-translation-files-into-the-right-sub-directo.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0013-Use-correct-gettext-domains-in-python-gui-sandbox.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0014-Initial-.pot-files-for-gui-python-sandbox.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0016-policycoreutils-setfiles-Improve-description-of-d-sw.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0017-sepolicy-generate-Handle-more-reserved-port-types.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0018-semodule-utils-Fix-RESOURCE_LEAK-coverity-scan-defec.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0019-sandbox-Use-matchbox-window-manager-instead-of-openb.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0020-python-Use-ipaddress-instead-of-IPy.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0021-python-semanage-Do-not-traceback-when-the-default-po.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0022-policycoreutils-fixfiles-Fix-B-F-onboot.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0023-policycoreutils-fixfiles-Force-full-relabel-when-SEL.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0024-policycoreutils-fixfiles-Fix-unbound-variable-proble.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0025-gui-Fix-remove-module-in-system-config-selinux.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0026-python-semanage-Do-not-use-default-s0-range-in-seman.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0027-policycoreutils-fixfiles-Fix-verify-option.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0028-python-semanage-Improve-handling-of-permissive-state.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0029-python-semanage-fix-moduleRecords.customized.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0030-python-semanage-Add-support-for-DCCP-and-SCTP-protoc.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0031-dbus-Fix-FileNotFoundError-in-org.selinux.relabel_on.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0032-restorecond-Fix-redundant-console-log-output-error.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0033-python-semanage-empty-stdout-before-exiting-on-Broke.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0034-python-semanage-Sort-imports-in-alphabetical-order.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0035-python-sepolgen-allow-any-policy-statement-in-if-n-d.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0036-setfiles-Do-not-abort-on-labeling-error.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0037-setfiles-drop-ABORT_ON_ERRORS-and-related-code.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0038-policycoreutils-setfiles-Drop-unused-nerr-variable.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0039-selinux-8-5-Describe-fcontext-regular-expressions.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0040-policycoreutils-setfiles-do-not-restrict-checks-agai.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0041-semodule-add-m-checksum-option.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0042-semodule-Fix-lang_ext-column-index.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0043-semodule-Don-t-forget-to-munmap-data.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0044-policycoreutils-Improve-error-message-when-selabel_o.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0045-semodule-libsemanage-move-module-hashing-into-libsem.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0046-semodule-add-command-line-option-to-detect-module-ch.patch Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
0047-python-Split-semanage-import-into-two-transactions.patch Auto sync2gitlab import of policycoreutils-2.9-20.el8.src.rpm 2022-08-16 02:10:18 +00:00
0048-semodule-rename-rebuild-if-modules-changed-to-refres.patch Auto sync2gitlab import of policycoreutils-2.9-20.el8.src.rpm 2022-08-16 02:10:18 +00:00
0049-python-Harden-tools-against-rogue-modules.patch Auto sync2gitlab import of policycoreutils-2.9-21.1.el8.src.rpm 2023-01-11 14:13:01 +00:00
0050-python-Do-not-query-the-local-database-if-the-fconte.patch Auto sync2gitlab import of policycoreutils-2.9-21.1.el8.src.rpm 2023-01-11 14:13:01 +00:00
0051-python-sepolicy-add-missing-booleans-to-man-pages.patch Auto sync2gitlab import of policycoreutils-2.9-23.el8.src.rpm 2023-02-18 00:29:28 +00:00
0052-python-sepolicy-Cache-conditional-rule-queries.patch Auto sync2gitlab import of policycoreutils-2.9-23.el8.src.rpm 2023-02-18 00:29:28 +00:00
0053-python-Harden-more-tools-against-rogue-modules.patch policycoreutils-2.9-25 2024-02-06 18:34:36 +01:00
0054-sepolicy-port-to-dnf4-python-API.patch policycoreutils-2.9-25 2024-02-06 18:34:36 +01:00
0055-python-semanage-Do-not-sort-local-fcontext-definitio.patch policycoreutils-2.9-26 2024-04-09 17:16:36 +02:00
0056-python-semanage-Allow-modifying-records-on-add.patch policycoreutils-2.9-26 2024-04-09 17:16:36 +02:00
gating.yaml Bring gating.yaml over from Brew dist-git 2023-03-10 11:14:37 -08:00
make-rhat-patches.sh set the expected mode back for some files 2023-07-12 10:57:09 +02:00
policycoreutils.spec policycoreutils-2.9-26 2024-04-09 17:16:36 +02:00
README.translations re-import sources as agreed with the maintainer 2023-07-11 11:28:11 +02:00
selinux-autorelabel set the expected mode back for some files 2023-07-12 10:57:09 +02:00
selinux-autorelabel-generator.sh Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
selinux-autorelabel-mark.service Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
selinux-autorelabel.service Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
selinux-autorelabel.target Auto sync2gitlab import of policycoreutils-2.9-19.el8.src.rpm 2022-05-26 13:23:57 -04:00
sepolicy-help.tgz re-import sources as agreed with the maintainer 2023-07-11 11:28:11 +02:00
sepolicy-icons.tgz re-import sources as agreed with the maintainer 2023-07-11 11:28:11 +02:00
sources re-import sources as agreed with the maintainer 2023-07-11 11:28:11 +02:00
system-config-selinux.png re-import sources as agreed with the maintainer 2023-07-11 11:28:11 +02:00
zanata.xml re-import sources as agreed with the maintainer 2023-07-11 11:28:11 +02:00

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/rhel8$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/rhel8$p --output selinux
    done
  # unzip archives
  $ cd selinux
  $ for p in policycoreutils python gui sandbox; do
    unzip -o selinux-rhel8$p.zip -d ..
    mv rhel8$p/selinux/$p/po/*.po $p/po/
    rm -rf selinux-rhel8$p.zip rhel8$p
    done
  $ git add .
  $ git commit

How to update translations in *-po.tgz files
  $ rhpkg clone policycoreutils; cd policycoreutils
  $ mkdir weblate; cd weblate
  $ for p in policycoreutils python gui sandbox; do
    wlc --key <API key> --url https://translate.fedoraproject.org/api/ download selinux/rhel8$p --output .
    unzip -o selinux-rhel8$p.zip
    mv selinux/rhel8$p/selinux/$p .
    rm -rf selinux-rhel8$p.zip selinux
    cd $p
    tar -c -f ../$p-po.tgz -z .
    cd -
    done
  # upload new sources
  $ cp *.tgz ..
  $ cd ..
  $ cat sources | head -n -4 > sources
  $ for p in gui policycoreutils python sandbox; do
    rhpkg upload  $p-po.tgz
    done