Skip to content

Commit 2a30ddc

Browse files
committed
debian/control: add adduser to Depends of cephadm and ceph-common
in `debian/ceph-common.postinst` and `debian/cephadm.postinst`, we use `adduser --system` to create the system user when configuring the corresponding package. before this change, the dependency is not listed in the runtime `Depends` section of ceph-common and cephadm. in this change, the dependency is added. this is also suggested by Securing Debian Manual, see https://www.debian.org/doc/manuals/securing-debian-manual/bpp-lower-privs.en.html Signed-off-by: Kefu Chai <[email protected]>
1 parent 4103b56 commit 2a30ddc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

debian/control

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ Description: debugging symbols for ceph-base
184184
Package: cephadm
185185
Architecture: linux-any
186186
Recommends: podman (>= 2.0.2) | docker.io | docker-ce
187-
Depends: lvm2,
187+
Depends: adduser (>= 3.11),
188+
lvm2,
188189
python3,
189190
${python3:Depends},
190191
Description: cephadm utility to bootstrap ceph daemons with systemd and containers
@@ -610,7 +611,8 @@ Description: debugging symbols for rbd-nbd
610611

611612
Package: ceph-common
612613
Architecture: linux-any
613-
Depends: librbd1 (= ${binary:Version}),
614+
Depends: adduser (>= 3.11),
615+
librbd1 (= ${binary:Version}),
614616
python3-cephfs (= ${binary:Version}),
615617
python3-ceph-argparse (= ${binary:Version}),
616618
python3-ceph-common (= ${binary:Version}),

0 commit comments

Comments
 (0)