Skip to content

Commit

Permalink
Merge pull request #2725 from AkihiroSuda/fix-1396
Browse files Browse the repository at this point in the history
rootless: allocate 1G subuids from 524288 (0x80000)
  • Loading branch information
AkihiroSuda authored Oct 13, 2024
2 parents 4561580 + 9214ea6 commit 46aa594
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/cidata/cidata.TEMPLATE.d/boot/20-rootless-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ fi

# Set up subuid
for f in /etc/subuid /etc/subgid; do
grep -qw "${LIMA_CIDATA_USER}" $f || echo "${LIMA_CIDATA_USER}:100000:65536" >>$f
# systemd-homed expects the subuid range to be within 524288-1878982656 (0x80000-0x6fff0000).
# See userdbctl.
# 1073741824 (1G) is just an arbitrary number.
# 1073741825-1878982656 is left blank for additional accounts.
grep -qw "${LIMA_CIDATA_USER}" $f || echo "${LIMA_CIDATA_USER}:524288:1073741824" >>$f
done

# Start systemd session
Expand Down

0 comments on commit 46aa594

Please sign in to comment.