Go to file
Demi Marie Obenour 188ea74993
sudo isn’t always built with SELinux support
Red Hat- and Debian- derived distributions support SELinux, and so their
sudo packages are built with SELinux support.  However, other
distributions (notably Arch) build sudo without SELinux.  Such sudo
builds will fail to parse the `ROLE=unconfined_r TYPE=unconfined_t`
string added in 0fac1aa45c.  They *can*
parse `role=unconfined_r, type=unconfined_t` in `Defaults`, but that
causes problems on some Fedora 33 systems if SELinux is turned off and
the root account is locked.

To solve both of these problems at once, we install a different
`/etc/sudoers.d/qubes` file depending on the distribution.  As a
heuristic, we use the presents of `/etc/redhat-release` or
`/etc/debian_version`.  If either is present, sudo probably supports
SELinux, and we should include the corresponding entries.  If both are
missing, then we shouldn’t risk it.  The `qubes.sudoers` file in the git
repository includes the full file (with SELinux); we use `sed` to strip
the SELinux portion when needed.
2021-01-11 04:23:38 -05:00
app-menu Fixed menu item name 2020-09-26 22:48:35 +00:00
applications-dropins Add /etc/qubes/applications override, use it for gnome-terminal 2020-01-27 14:05:55 +01:00
archlinux archlinux: pin PKGBUILD to python3.X major version as new python version will break the API 2021-01-05 20:50:49 +01:00
autostart-dropins Enable gnome settings daemon xsettings plugin 2018-01-12 05:44:54 +01:00
boot grub: override GRUB_DEVICE with /dev/mapper/dmroot 2020-11-02 04:33:56 +01:00
ci travis: install also python xdg module 2020-01-28 04:22:12 +01:00
config-overrides Use 022 instead of 002 as sudo umask 2020-12-24 15:40:51 -05:00
debian version 4.1.21 2021-01-08 05:40:50 +01:00
doc Remove qrexec-agent related files 2019-04-08 18:22:38 +02:00
filesystem Drop legacy xen entry in fstab 2020-07-26 14:30:33 +02:00
init Merge branch 'network-wait-fix' 2021-01-03 06:11:48 +01:00
misc Install 50-qubes-mem-hotplug.rules in /lib/udev instead of /etc/udev 2020-02-05 00:12:23 +00:00
network network: skip calling setup-ip from network-manager-prepare-conf-dir 2021-01-03 22:36:08 +01:00
package-managers Merge branch 'network-wait-fix' 2021-01-03 06:11:48 +01:00
passwordless-root sudo isn’t always built with SELinux support 2021-01-11 04:23:38 -05:00
patches.debian Split items in misc directory by topic 2020-02-04 23:59:09 +00:00
pkgs archlinux: created build scripts 2013-04-17 01:22:32 +02:00
qubes-rpc Merge remote-tracking branch 'origin/pr/267' 2021-01-03 05:25:57 +01:00
qubesagent Handle UnicodeError in firewall when resolving hostname 2021-01-02 15:29:58 -08:00
rpm_spec rpm: enable qubes-network-uplink.service on install 2021-01-04 20:25:54 +01:00
test-packages tests: add run-tests script, plug it into travis 2017-05-20 13:20:08 +02:00
vm-init.d Move qubes-firewall from sbin to bin 2020-02-05 00:12:22 +00:00
vm-systemd Avoid deprecated /var/run directory 2020-12-28 22:06:40 -05:00
.coveragerc tests: add run-tests script, plug it into travis 2017-05-20 13:20:08 +02:00
.gitignore debian: add 'rpm' as dependency 2020-06-19 19:15:52 +02:00
.gitlab-ci.yml gitlab-ci: install test dependencies 2020-11-23 12:49:38 +01:00
.travis.yml travis: allow bullseye install to fail - no dnf/yum available 2020-09-16 15:40:51 +02:00
debian-quilt debian: fix shellcheck warnings in debian packaging 2017-09-30 05:05:33 +02:00
LICENSE Added LICENSE 2010-04-05 21:21:27 +02:00
Makefile Add a service to enable swap early - before fsck of the root filesystem 2020-11-03 05:18:57 +01:00
Makefile.builder Allow build for Focal 2020-10-10 04:18:19 +02:00
run-tests Load only test_* files when looking for tests (python) 2018-04-02 23:19:02 +02:00
series-debian-jessie-vm.conf Revert "Use sfdisk instead of parted to ..." on stretch and jessie 2019-02-24 05:15:04 +01:00
series-debian-stretch-vm.conf Revert "Use sfdisk instead of parted to ..." on stretch and jessie 2019-02-24 05:15:04 +01:00
series-debian-vm.conf Stop anacron from starting in Debian using existing constraint on cron 2017-02-05 23:36:27 +00:00
setup.py Install faster console scripts for Python code 2020-01-24 18:45:16 +01:00
version version 4.1.21 2021-01-08 05:40:50 +01:00