Skip to content

Commit 16bae24

Browse files
committed
Do not use sudo FQDN lookups
Fixes: #193 Signed-off-by: Robie Basak <[email protected]>
1 parent 3625139 commit 16bae24

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

ci/qemu_guest_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ def apt_dependencies():
4040
)
4141

4242

43-
@pytest.mark.xfail(
44-
reason="https://github.com/qualcomm-linux/qcom-deb-images/issues/193",
45-
strict=True,
46-
)
4743
def test_sudo_no_fqdn(apt_dependencies):
4844
"""sudo should not call FQDN lookup functions
4945

debos-recipes/qualcomm-linux-debian-rootfs.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ actions:
146146
echo "debian ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/90-debos
147147
)
148148
149+
# See: https://github.com/qualcomm-linux/qcom-deb-images/issues/193
150+
- action: run
151+
description: Configure sudo to use !fqdn
152+
command: |
153+
set -eux
154+
echo "Defaults !fqdn" > ${ROOTDIR}/etc/sudoers.d/disable-fqdn
155+
149156
# NB: Recommends pull in way too many packages, and we don't need to follow
150157
# Recommends reaching outside of this Priority level
151158
- action: apt

0 commit comments

Comments
 (0)