[Git-commits] [grml/grml-live] 645b87: Ensure files are copied with fcopy into chroot wit...

Michael Prokop noreply at github.com
Wed Dec 18 17:12:23 CET 2024


  Branch: refs/heads/mika/perms
  Home:   https://github.com/grml/grml-live
  Commit: 645b87befe56914637cc585acd9d8b892c3829e7
      https://github.com/grml/grml-live/commit/645b87befe56914637cc585acd9d8b892c3829e7
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-12-18 (Wed, 18 Dec 2024)

  Changed paths:
    M etc/grml/fai/config/hooks/updatebase.GRMLBASE
    M etc/grml/fai/config/scripts/GRMLBASE/20-sudo
    M etc/grml/fai/config/scripts/GRMLBASE/25-locales
    M etc/grml/fai/config/scripts/GRMLBASE/26-console-setup
    M etc/grml/fai/config/scripts/GRMLBASE/30-fstab
    M etc/grml/fai/config/scripts/GRMLBASE/31-motd
    M etc/grml/fai/config/scripts/GRMLBASE/34-hosts
    M etc/grml/fai/config/scripts/GRMLBASE/35-network
    M etc/grml/fai/config/scripts/GRMLBASE/39-modprobe
    M etc/grml/fai/config/scripts/GRMLBASE/41-modules
    M etc/grml/fai/config/scripts/GRMLBASE/42-branding
    M etc/grml/fai/config/scripts/GRMLBASE/43-rsyslog
    M etc/grml/fai/config/scripts/GRMLBASE/51-cloud-init
    M etc/grml/fai/config/scripts/GRMLBASE/80-initramfs
    M etc/grml/fai/config/scripts/GRML_FULL/01-firefox

  Log Message:
  -----------
  Ensure files are copied with fcopy into chroot with expected permissions

When running grml-live from within the git repository that was cloned by
a user other than root, the files installed by FAI's fcopy have
wrong/unexpected permissions.

For example:

| # stat /home/mika/build/grml-live-2024-12/grml_chroot/etc/rsyslog.conf
|   File: /home/mika/build/grml-live-2024-12/grml_chroot/etc/rsyslog.conf
|   Size: 1106            Blocks: 8          IO Block: 4096   regular file
| Device: 253,2   Inode: 4472261     Links: 1
| Access: (0644/-rw-r--r--)  Uid: ( 1000/    mika)   Gid: ( 1000/    mika)
| Access: 2024-12-18 15:39:59.477471695 +0100
| Modify: 2023-08-07 13:32:24.000000000 +0200
| Change: 2024-12-10 17:02:16.177262515 +0100
|  Birth: 2024-12-10 17:02:16.177262515 +0100

fcopy provides the following options:

| % fcopy -h
| fcopy, copy files using classes.
| [...]
|    -m user,group,mode   Set user, group and mode for copied files.
|    -M                   Same as -m root,root,0644
| [...]

Execute all fcopy command lines with -M, execept for the ones that need
execute permission (being /usr/share/initramfs-tools/scripts/init-top/grml
and /etc/initramfs-tools/hooks/000-udev-shutup).



To unsubscribe from these emails, change your notification settings at https://github.com/grml/grml-live/settings/notifications


More information about the Git-commits mailing list