Skip to content

Commit

Permalink
Remove SPDX headers from sensitive files
Browse files Browse the repository at this point in the history
The recently added SPDX headers cause some problems with downstream
builds:

- SPDX headers in sudoers files require security review.

- SPDX headers in autounattended files report linting failure because
  the files don’t start with an XML header at the very beginning.

Let’s remove SPDX headers from the given places to avoid false alerts.
Let’s also disable ‘reuse’ check in ‘make lint’ to avoid linter
failures due to missing SPDX headers.

This is 4.5.3-only change to avoid problems with downstream builds.
  • Loading branch information
mz-pdm committed Oct 12, 2022
1 parent fb785c0 commit 56e47df
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ check-unit:
$(MAKE) -C tests/ check NOSE_EVAL_ATTR="type=='unit'"

.PHONY: lint
lint: gitignore reuse execcmd black flake8 pylint
lint: gitignore execcmd black flake8 pylint

.PHONY: venv
venv:
Expand Down
3 changes: 0 additions & 3 deletions static/etc/sudoers.d/50_vdsm.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

Cmnd_Alias VDSM_STORAGE = \
@FSCK_PATH@ -p *, \
@TUNE2FS_PATH@ -j *, \
Expand Down
5 changes: 0 additions & 5 deletions static/usr/share/vdsm/autounattend/Autounattend.xml.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
<!--
SPDX-FileCopyrightText: Red Hat, Inc.
SPDX-License-Identifier: GPL-2.0-or-later
-->

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
Expand Down
3 changes: 0 additions & 3 deletions vdsm_hooks/extra_ipv4_addrs/sudoers
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

vdsm ALL=(ALL) NOPASSWD: /usr/sbin/ip, /sbin/ip, /usr/bin/ip
3 changes: 0 additions & 3 deletions vdsm_hooks/localdisk/sudoers.vdsm_hook_localdisk
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

vdsm ALL=(ALL) NOPASSWD: /usr/libexec/vdsm/localdisk-helper
Defaults:vdsm !requiretty
Defaults:vdsm !syslog
3 changes: 0 additions & 3 deletions vdsm_hooks/openstacknet/sudoers.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

vdsm ALL=(ALL) NOPASSWD: /usr/sbin/ip link set * nomaster
vdsm ALL=(ALL) NOPASSWD: /usr/bin/ovs-vsctl
3 changes: 0 additions & 3 deletions vdsm_hooks/vhostmd/sudoers.vdsm_hook_vhostmd
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

vdsm ALL=(ALL) NOPASSWD: /sbin/service vhostmd *

0 comments on commit 56e47df

Please sign in to comment.