pmaports/main/postmarketos-base
Minecrell 74e8166c7d
main/postmarketos-base: fix file permissions of /etc/sudoers (MR 2610)
Installing postmarketos-base currently changes the file permissions
of /etc/sudoers:

  # apk add sudo
  # stat /etc/sudoers
  Access: (0440/-r--r-----)  Uid: (    0/    root)   Gid: (    0/    root)

  # apk add postmarketos-base
  # stat /etc/sudoers
  Access: (0044/----r--r--)  Uid: (    0/    root)   Gid: (    0/    root)

The file mode 0044 decodes to:
  - User *cannot* read
  - Group can read
  - Other can read

which does not make any sense. The "sudoers" man page makes it very
clear that this file should have a file mode of 0440 [1]
("readable by owner and group, writable by none").

This looks like a bad typo. However, given that only read permissions
were given out this shouldn't have major security implications
(except allowing all users to see who can use sudo).
Install the file with 0440 instead of 0044 to fix this:

  # apk add postmarketos-base
  # stat /etc/sudoers
  Access: (0440/-r--r-----)  Uid: (    0/    root)   Gid: (    0/    root)

[1]: https://www.sudo.ws/man/1.9.8/sudoers.man.html#Error_log_entries
2021-10-17 11:30:07 +02:00
..
APKBUILD main/postmarketos-base: fix file permissions of /etc/sudoers (MR 2610) 2021-10-17 11:30:07 +02:00
postmarketos-base-nftables.post-install postmarketos-base: remove UI-specific config/dependencies (MR 2243) 2021-06-23 13:00:00 +02:00
postmarketos-base.post-install postmarketos-base: remove UI-specific config/dependencies (MR 2243) 2021-06-23 13:00:00 +02:00
postmarketos-base.post-upgrade main/postmarketos-base: add dummy post-upgrade (MR 1964) 2021-02-17 17:49:58 -08:00
postmarketos-base.pre-upgrade postmarketos-base: remove UI-specific config/dependencies (MR 2243) 2021-06-23 13:00:00 +02:00
postmarketos-base.trigger postmarketos-base: configure getty using deviceinfo_getty variable (!771) 2019-12-07 01:32:23 +01:00
rootfs-etc-conf.d-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-conf.d-syslog main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-fstab main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-init.d-deferred-initcalls main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-init.d-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-issue main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-motd main/postmarketos-base: update motd for the cheatsheet (MR 1961) 2021-02-21 11:47:07 +01:00
rootfs-etc-os-release main/*: fix outdated url variables (MR 2226) 2021-06-06 19:02:54 +02:00
rootfs-etc-sudoers main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-lib-udev-rules.d-20-tm2-touchkey-leds.rules main/postmarketos-base: change permission on tm2-touchkey leds (MR 2380) 2021-08-10 00:03:50 -07:00
rootfs-lib-udev-rules.d-50-firmware.rules main/postmarketos-base: udev tm2-touchkey and rt5033-battery (MR 2330) 2021-07-11 14:10:03 +02:00
rootfs-lib-udev-rules.d-95-rt5033-battery-refresh.rules main/postmarketos-base: udev tm2-touchkey and rt5033-battery (MR 2330) 2021-07-11 14:10:03 +02:00
rootfs-sbin-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-usr-lib-firmwareload.sh main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00