diff --git a/apol b/apol
index 153fd89..4008321 100755
--- a/apol
+++ b/apol
@@ -1,20 +1,7 @@
#!/usr/bin/env python3
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import sys
diff --git a/sechecker b/sechecker
index c410d33..f5da803 100755
--- a/sechecker
+++ b/sechecker
@@ -1,20 +1,7 @@
#!/usr/bin/env python3
# Copyright 2020 Microsoft Corporation
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import setools
diff --git a/sediff b/sediff
index cdb5eed..b2fef97 100755
--- a/sediff
+++ b/sediff
@@ -1,20 +1,7 @@
#!/usr/bin/env python3
# Copyright 2015-2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import setools
diff --git a/sedta b/sedta
index 0f13ef9..ffd9ede 100755
--- a/sedta
+++ b/sedta
@@ -1,20 +1,7 @@
#!/usr/bin/env python3
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import sys
diff --git a/seinfo b/seinfo
index a05294c..cecc9f0 100755
--- a/seinfo
+++ b/seinfo
@@ -2,20 +2,7 @@
# Copyright 2014-2015, Tresys Technology, LLC
# Copyright 2018-2019, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import setools
diff --git a/seinfoflow b/seinfoflow
index 83a1142..5f4e764 100755
--- a/seinfoflow
+++ b/seinfoflow
@@ -1,20 +1,7 @@
#!/usr/bin/env python3
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import setools
diff --git a/sesearch b/sesearch
index 99e2940..456a1cd 100755
--- a/sesearch
+++ b/sesearch
@@ -1,20 +1,7 @@
#!/usr/bin/env python3
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import setools
diff --git a/setools/__init__.py b/setools/__init__.py
index d72d343..ad9b36a 100644
--- a/setools/__init__.py
+++ b/setools/__init__.py
@@ -2,21 +2,7 @@
# Copyright 2014-2015, Tresys Technology, LLC
# Copyright 2016, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
try:
import pkg_resources
diff --git a/setools/boolquery.py b/setools/boolquery.py
index 1d77216..3e8336a 100644
--- a/setools/boolquery.py
+++ b/setools/boolquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable, Optional
diff --git a/setools/boundsquery.py b/setools/boundsquery.py
index 794f7df..96be333 100644
--- a/setools/boundsquery.py
+++ b/setools/boundsquery.py
@@ -1,20 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/categoryquery.py b/setools/categoryquery.py
index 31ccb51..0b326a6 100644
--- a/setools/categoryquery.py
+++ b/setools/categoryquery.py
@@ -1,20 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable
diff --git a/setools/checker/__init__.py b/setools/checker/__init__.py
index 0f4f5c7..80b227f 100644
--- a/setools/checker/__init__.py
+++ b/setools/checker/__init__.py
@@ -1,20 +1,6 @@
# Copyright 2020, Microsoft Corporation
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from . import assertrbac
diff --git a/setools/checker/assertrbac.py b/setools/checker/assertrbac.py
index 8c496ff..c642c2b 100644
--- a/setools/checker/assertrbac.py
+++ b/setools/checker/assertrbac.py
@@ -1,21 +1,7 @@
# Copyright 2020, Microsoft Corporation
# Copyright 2020, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
diff --git a/setools/checker/assertte.py b/setools/checker/assertte.py
index a2996d0..acd073d 100644
--- a/setools/checker/assertte.py
+++ b/setools/checker/assertte.py
@@ -1,21 +1,7 @@
# Copyright 2020, Microsoft Corporation
# Copyright 2020, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
diff --git a/setools/checker/checker.py b/setools/checker/checker.py
index 82231c4..fa1a02c 100644
--- a/setools/checker/checker.py
+++ b/setools/checker/checker.py
@@ -1,20 +1,6 @@
# Copyright 2020, Microsoft Corporation
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import sys
diff --git a/setools/checker/checkermodule.py b/setools/checker/checkermodule.py
index 8182b48..f0d0ca0 100644
--- a/setools/checker/checkermodule.py
+++ b/setools/checker/checkermodule.py
@@ -1,20 +1,6 @@
# Copyright 2020, Microsoft Corporation
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import sys
diff --git a/setools/checker/descriptors.py b/setools/checker/descriptors.py
index 8456822..7afeee2 100644
--- a/setools/checker/descriptors.py
+++ b/setools/checker/descriptors.py
@@ -1,20 +1,6 @@
# Copyright 2020, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import re
from typing import Callable, Union
diff --git a/setools/checker/emptyattr.py b/setools/checker/emptyattr.py
index 6882856..6c802a3 100644
--- a/setools/checker/emptyattr.py
+++ b/setools/checker/emptyattr.py
@@ -1,20 +1,6 @@
# Copyright 2020, Microsoft Corporation
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
diff --git a/setools/checker/globalkeys.py b/setools/checker/globalkeys.py
index 16ca1df..5b5efe4 100644
--- a/setools/checker/globalkeys.py
+++ b/setools/checker/globalkeys.py
@@ -1,20 +1,6 @@
# Copyright 2020, Microsoft Corporation
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
# This is a separate file to break a circular import.
diff --git a/setools/checker/roexec.py b/setools/checker/roexec.py
index 13d5620..7d4a09e 100644
--- a/setools/checker/roexec.py
+++ b/setools/checker/roexec.py
@@ -1,20 +1,6 @@
# Copyright 2020, Microsoft Corporation
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
diff --git a/setools/checker/util.py b/setools/checker/util.py
index 284d99f..8dba820 100644
--- a/setools/checker/util.py
+++ b/setools/checker/util.py
@@ -1,20 +1,6 @@
# Copyright 2020, Microsoft Corporation
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
diff --git a/setools/commonquery.py b/setools/commonquery.py
index 55cd930..bb514e4 100644
--- a/setools/commonquery.py
+++ b/setools/commonquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/constraintquery.py b/setools/constraintquery.py
index 8abdca0..e6d2434 100644
--- a/setools/constraintquery.py
+++ b/setools/constraintquery.py
@@ -1,20 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/defaultquery.py b/setools/defaultquery.py
index cd4fedb..d79533d 100644
--- a/setools/defaultquery.py
+++ b/setools/defaultquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/descriptors.py b/setools/descriptors.py
index 468de96..2bf2256 100644
--- a/setools/descriptors.py
+++ b/setools/descriptors.py
@@ -1,21 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
# Copyright 2016, 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
"""
SETools descriptors.
diff --git a/setools/devicetreeconquery.py b/setools/devicetreeconquery.py
index 76d8481..9213173 100644
--- a/setools/devicetreeconquery.py
+++ b/setools/devicetreeconquery.py
@@ -1,20 +1,6 @@
# Derived from portconquery.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable, Optional
diff --git a/setools/diff/__init__.py b/setools/diff/__init__.py
index 3c9ff60..ad144c4 100644
--- a/setools/diff/__init__.py
+++ b/setools/diff/__init__.py
@@ -1,20 +1,6 @@
# Copyright 2015-2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from .bool import BooleansDifference
from .bounds import BoundsDifference
diff --git a/setools/diff/bool.py b/setools/diff/bool.py
index c4ef233..29043e1 100644
--- a/setools/diff/bool.py
+++ b/setools/diff/bool.py
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
from typing import NamedTuple
diff --git a/setools/diff/bounds.py b/setools/diff/bounds.py
index b083584..4c0bcae 100644
--- a/setools/diff/bounds.py
+++ b/setools/diff/bounds.py
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import cast, List, NamedTuple, Optional
diff --git a/setools/diff/commons.py b/setools/diff/commons.py
index cf3596d..378a3c8 100644
--- a/setools/diff/commons.py
+++ b/setools/diff/commons.py
@@ -1,20 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple, Set
diff --git a/setools/diff/conditional.py b/setools/diff/conditional.py
index 6cc745a..c2afcb6 100644
--- a/setools/diff/conditional.py
+++ b/setools/diff/conditional.py
@@ -1,21 +1,7 @@
# Copyright 2015-2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
diff --git a/setools/diff/constraints.py b/setools/diff/constraints.py
index 6a15b2a..35dd021 100644
--- a/setools/diff/constraints.py
+++ b/setools/diff/constraints.py
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
from typing import FrozenSet, List, Optional, Union
diff --git a/setools/diff/context.py b/setools/diff/context.py
index da8011c..f1ef358 100644
--- a/setools/diff/context.py
+++ b/setools/diff/context.py
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import Optional
diff --git a/setools/diff/default.py b/setools/diff/default.py
index cab4150..49bbec4 100644
--- a/setools/diff/default.py
+++ b/setools/diff/default.py
@@ -1,20 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple, Optional
diff --git a/setools/diff/descriptors.py b/setools/diff/descriptors.py
index 5d6ec6c..770be2c 100644
--- a/setools/diff/descriptors.py
+++ b/setools/diff/descriptors.py
@@ -1,20 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import MutableMapping
from weakref import WeakKeyDictionary
diff --git a/setools/diff/difference.py b/setools/diff/difference.py
index 78ccb18..d23bffa 100644
--- a/setools/diff/difference.py
+++ b/setools/diff/difference.py
@@ -1,21 +1,7 @@
# Copyright 2015-2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from abc import ABC, abstractmethod
diff --git a/setools/diff/fsuse.py b/setools/diff/fsuse.py
index 69cb0df..39581fc 100644
--- a/setools/diff/fsuse.py
+++ b/setools/diff/fsuse.py
@@ -1,20 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple
diff --git a/setools/diff/genfscon.py b/setools/diff/genfscon.py
index 80d41cb..1beeeda 100644
--- a/setools/diff/genfscon.py
+++ b/setools/diff/genfscon.py
@@ -1,20 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple
diff --git a/setools/diff/ibendportcon.py b/setools/diff/ibendportcon.py
index 4ee4df8..c307acc 100644
--- a/setools/diff/ibendportcon.py
+++ b/setools/diff/ibendportcon.py
@@ -1,20 +1,6 @@
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple
diff --git a/setools/diff/ibpkeycon.py b/setools/diff/ibpkeycon.py
index 5c0a9e7..06fd7fd 100644
--- a/setools/diff/ibpkeycon.py
+++ b/setools/diff/ibpkeycon.py
@@ -1,20 +1,6 @@
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple
diff --git a/setools/diff/initsid.py b/setools/diff/initsid.py
index 9040f9d..c3bfbae 100644
--- a/setools/diff/initsid.py
+++ b/setools/diff/initsid.py
@@ -1,20 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple
diff --git a/setools/diff/mls.py b/setools/diff/mls.py
index f022654..829ddd3 100644
--- a/setools/diff/mls.py
+++ b/setools/diff/mls.py
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
from typing import NamedTuple, Set
diff --git a/setools/diff/mlsrules.py b/setools/diff/mlsrules.py
index 3ae7165..628fac8 100644
--- a/setools/diff/mlsrules.py
+++ b/setools/diff/mlsrules.py
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
from typing import NamedTuple
diff --git a/setools/diff/netifcon.py b/setools/diff/netifcon.py
index ab77073..87cf02b 100644
--- a/setools/diff/netifcon.py
+++ b/setools/diff/netifcon.py
@@ -1,20 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple, Optional
diff --git a/setools/diff/nodecon.py b/setools/diff/nodecon.py
index c1242ee..fb5cd8b 100644
--- a/setools/diff/nodecon.py
+++ b/setools/diff/nodecon.py
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2017, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple
diff --git a/setools/diff/objclass.py b/setools/diff/objclass.py
index 64669fe..16bd99e 100644
--- a/setools/diff/objclass.py
+++ b/setools/diff/objclass.py
@@ -1,21 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
from contextlib import suppress
diff --git a/setools/diff/polcap.py b/setools/diff/polcap.py
index e921094..44bf7e6 100644
--- a/setools/diff/polcap.py
+++ b/setools/diff/polcap.py
@@ -1,20 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from .descriptors import DiffResultDescriptor
from .difference import Difference, SymbolWrapper
diff --git a/setools/diff/portcon.py b/setools/diff/portcon.py
index 548b658..785469b 100644
--- a/setools/diff/portcon.py
+++ b/setools/diff/portcon.py
@@ -1,20 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple
diff --git a/setools/diff/properties.py b/setools/diff/properties.py
index 292e222..5a962f6 100644
--- a/setools/diff/properties.py
+++ b/setools/diff/properties.py
@@ -1,20 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import NamedTuple, Union
diff --git a/setools/diff/rbacrules.py b/setools/diff/rbacrules.py
index 8a7ea95..fbbdb8c 100644
--- a/setools/diff/rbacrules.py
+++ b/setools/diff/rbacrules.py
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
from typing import NamedTuple
diff --git a/setools/diff/roles.py b/setools/diff/roles.py
index e4598e9..8e18137 100644
--- a/setools/diff/roles.py
+++ b/setools/diff/roles.py
@@ -1,21 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
from typing import NamedTuple, Set
diff --git a/setools/diff/terules.py b/setools/diff/terules.py
index a46f99c..4903c5f 100644
--- a/setools/diff/terules.py
+++ b/setools/diff/terules.py
@@ -1,21 +1,7 @@
# Copyright 2015-2016, Tresys Technology, LLC
# Copyright 2016, 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from collections import defaultdict
diff --git a/setools/diff/typeattr.py b/setools/diff/typeattr.py
index eec96d8..b012741 100644
--- a/setools/diff/typeattr.py
+++ b/setools/diff/typeattr.py
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
from typing import NamedTuple, Set
diff --git a/setools/diff/types.py b/setools/diff/types.py
index f1ed651..04309ac 100644
--- a/setools/diff/types.py
+++ b/setools/diff/types.py
@@ -1,21 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
from typing import NamedTuple, Set, Union
diff --git a/setools/diff/typing.py b/setools/diff/typing.py
index e3b6088..c33fbcd 100644
--- a/setools/diff/typing.py
+++ b/setools/diff/typing.py
@@ -1,18 +1,4 @@
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import DefaultDict, Dict, List, Optional, TypeVar
diff --git a/setools/diff/users.py b/setools/diff/users.py
index 9b8c01c..e9c827c 100644
--- a/setools/diff/users.py
+++ b/setools/diff/users.py
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from collections import defaultdict
from typing import NamedTuple, Set, Optional, Union
diff --git a/setools/dta.py b/setools/dta.py
index 0fe752f..ce5a364 100644
--- a/setools/dta.py
+++ b/setools/dta.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
# pylint: disable=unsubscriptable-object
diff --git a/setools/exception.py b/setools/exception.py
index d7e53c6..7e5bd4f 100644
--- a/setools/exception.py
+++ b/setools/exception.py
@@ -1,20 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
#
diff --git a/setools/fsusequery.py b/setools/fsusequery.py
index 943bcb8..ce064cb 100644
--- a/setools/fsusequery.py
+++ b/setools/fsusequery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/genfsconquery.py b/setools/genfsconquery.py
index 11e36ec..7b50a5c 100644
--- a/setools/genfsconquery.py
+++ b/setools/genfsconquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/ibendportconquery.py b/setools/ibendportconquery.py
index d571503..23ef3a3 100644
--- a/setools/ibendportconquery.py
+++ b/setools/ibendportconquery.py
@@ -1,20 +1,6 @@
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable, Optional
diff --git a/setools/ibpkeyconquery.py b/setools/ibpkeyconquery.py
index d37879f..c5685c3 100644
--- a/setools/ibpkeyconquery.py
+++ b/setools/ibpkeyconquery.py
@@ -1,20 +1,6 @@
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from ipaddress import IPv6Address
import logging
diff --git a/setools/infoflow.py b/setools/infoflow.py
index 80041f1..0ef240a 100644
--- a/setools/infoflow.py
+++ b/setools/infoflow.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import itertools
import logging
diff --git a/setools/initsidquery.py b/setools/initsidquery.py
index cfa41f4..183517f 100644
--- a/setools/initsidquery.py
+++ b/setools/initsidquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable
diff --git a/setools/iomemconquery.py b/setools/iomemconquery.py
index aacd47b..6abc4f0 100644
--- a/setools/iomemconquery.py
+++ b/setools/iomemconquery.py
@@ -1,20 +1,6 @@
# Derived from portconquery.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable, Optional, Tuple
diff --git a/setools/ioportconquery.py b/setools/ioportconquery.py
index 179f875..c627625 100644
--- a/setools/ioportconquery.py
+++ b/setools/ioportconquery.py
@@ -1,20 +1,6 @@
# Derived from portconquery.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable, Optional, Tuple
diff --git a/setools/mixins.py b/setools/mixins.py
index 12b07a3..cbde443 100644
--- a/setools/mixins.py
+++ b/setools/mixins.py
@@ -1,21 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
# Copyright 2019, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
# pylint: disable=attribute-defined-outside-init,no-member
import re
diff --git a/setools/mlsrulequery.py b/setools/mlsrulequery.py
index 117f844..1d39821 100644
--- a/setools/mlsrulequery.py
+++ b/setools/mlsrulequery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable
diff --git a/setools/netifconquery.py b/setools/netifconquery.py
index afdfa25..1d5a2ed 100644
--- a/setools/netifconquery.py
+++ b/setools/netifconquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable
diff --git a/setools/nodeconquery.py b/setools/nodeconquery.py
index b797744..86931ff 100644
--- a/setools/nodeconquery.py
+++ b/setools/nodeconquery.py
@@ -1,21 +1,7 @@
# Copyright 2014-2015, Tresys Technology, LLC
# Copyright 2017, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import ipaddress
diff --git a/setools/objclassquery.py b/setools/objclassquery.py
index 891f0d9..5dcdc9c 100644
--- a/setools/objclassquery.py
+++ b/setools/objclassquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/pcideviceconquery.py b/setools/pcideviceconquery.py
index 3de0dd8..51227d4 100644
--- a/setools/pcideviceconquery.py
+++ b/setools/pcideviceconquery.py
@@ -1,20 +1,6 @@
# Derived from portconquery.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable, Optional
diff --git a/setools/permmap.py b/setools/permmap.py
index 2ccc679..4cadb02 100644
--- a/setools/permmap.py
+++ b/setools/permmap.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import copy
diff --git a/setools/pirqconquery.py b/setools/pirqconquery.py
index d44428c..f431950 100644
--- a/setools/pirqconquery.py
+++ b/setools/pirqconquery.py
@@ -1,20 +1,6 @@
# Derived from portconquery.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable, Optional
diff --git a/setools/polcapquery.py b/setools/polcapquery.py
index d874e15..0ba8add 100644
--- a/setools/polcapquery.py
+++ b/setools/polcapquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable
diff --git a/setools/policyrep.pyi b/setools/policyrep.pyi
index d94729c..68a7ac5 100644
--- a/setools/policyrep.pyi
+++ b/setools/policyrep.pyi
@@ -1,18 +1,4 @@
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from typing import Any, Callable, Dict, FrozenSet, Iterable, Iterator, List, NamedTuple, \
diff --git a/setools/policyrep.pyx b/setools/policyrep.pyx
index 1ead1da..9d2f991 100644
--- a/setools/policyrep.pyx
+++ b/setools/policyrep.pyx
@@ -1,20 +1,6 @@
# Copyright 2017-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from cpython.exc cimport PyErr_SetFromErrnoWithFilename
diff --git a/setools/policyrep/boolcond.pxi b/setools/policyrep/boolcond.pxi
index 6a098b7..13e730b 100644
--- a/setools/policyrep/boolcond.pxi
+++ b/setools/policyrep/boolcond.pxi
@@ -1,21 +1,7 @@
# Copyright 2014-2015, Tresys Technology, LLC
# Copyright 2017-2018 Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
TruthTableRow = collections.namedtuple("TruthTableRow", ["values", "result"])
diff --git a/setools/policyrep/bounds.pxi b/setools/policyrep/bounds.pxi
index 6e901ef..ba0104e 100644
--- a/setools/policyrep/bounds.pxi
+++ b/setools/policyrep/bounds.pxi
@@ -1,21 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2016-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
diff --git a/setools/policyrep/constraint.pxi b/setools/policyrep/constraint.pxi
index 0b4c5b9..af304ca 100644
--- a/setools/policyrep/constraint.pxi
+++ b/setools/policyrep/constraint.pxi
@@ -1,21 +1,7 @@
# Copyright 2014-2016, Tresys Technology, LLC
# Copyright 2016-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
#
diff --git a/setools/policyrep/context.pxi b/setools/policyrep/context.pxi
index 215f6db..4f81982 100644
--- a/setools/policyrep/context.pxi
+++ b/setools/policyrep/context.pxi
@@ -1,21 +1,7 @@
# Copyright 2014-2015, Tresys Technology, LLC
# Copyright 2016-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
cdef class Context(PolicyObject):
diff --git a/setools/policyrep/default.pxi b/setools/policyrep/default.pxi
index dcba18b..db551fb 100644
--- a/setools/policyrep/default.pxi
+++ b/setools/policyrep/default.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, 2016 Tresys Technology, LLC
# Copyright 2016-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
#
diff --git a/setools/policyrep/fscontext.pxi b/setools/policyrep/fscontext.pxi
index 0e502e5..7489dc6 100644
--- a/setools/policyrep/fscontext.pxi
+++ b/setools/policyrep/fscontext.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, 2016, Tresys Technology, LLC
# Copyright 2016-2018, 2020, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
#
diff --git a/setools/policyrep/initsid.pxi b/setools/policyrep/initsid.pxi
index e3e323f..c235bf3 100644
--- a/setools/policyrep/initsid.pxi
+++ b/setools/policyrep/initsid.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, Tresys Technology, LLC
# Copyright 2017-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
#
diff --git a/setools/policyrep/mls.pxi b/setools/policyrep/mls.pxi
index 30464b7..028499b 100644
--- a/setools/policyrep/mls.pxi
+++ b/setools/policyrep/mls.pxi
@@ -1,21 +1,7 @@
# Copyright 2014-2016, Tresys Technology, LLC
# Copyright 2017-2019, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
# pylint: disable=protected-access
diff --git a/setools/policyrep/mlsrule.pxi b/setools/policyrep/mlsrule.pxi
index 9093fe1..ec06304 100644
--- a/setools/policyrep/mlsrule.pxi
+++ b/setools/policyrep/mlsrule.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, 2016, Tresys Technology, LLC
# Copyright 2016-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
diff --git a/setools/policyrep/netcontext.pxi b/setools/policyrep/netcontext.pxi
index e230560..49a024d 100644
--- a/setools/policyrep/netcontext.pxi
+++ b/setools/policyrep/netcontext.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, 2016, Tresys Technology, LLC
# Copyright 2016-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
IbpkeyconRange = collections.namedtuple("IbpkeyconRange", ["low", "high"])
diff --git a/setools/policyrep/objclass.pxi b/setools/policyrep/objclass.pxi
index 8ed2be5..66c2234 100644
--- a/setools/policyrep/objclass.pxi
+++ b/setools/policyrep/objclass.pxi
@@ -1,21 +1,7 @@
# Copyright 2014-2015, Tresys Technology, LLC
# Copyright 2017-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
cdef object _common_cache = WeakKeyDefaultDict(dict)
diff --git a/setools/policyrep/object.pxi b/setools/policyrep/object.pxi
index 6bff408..30f1ffb 100644
--- a/setools/policyrep/object.pxi
+++ b/setools/policyrep/object.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, Tresys Technology, LLC
# Copyright 2017-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
#
diff --git a/setools/policyrep/polcap.pxi b/setools/policyrep/polcap.pxi
index d573128..c5aa108 100644
--- a/setools/policyrep/polcap.pxi
+++ b/setools/policyrep/polcap.pxi
@@ -1,21 +1,7 @@
# Copyright 2014-2015, Tresys Technology, LLC
# Copyright 2017-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
diff --git a/setools/policyrep/rbacrule.pxi b/setools/policyrep/rbacrule.pxi
index 19d6a5f..ba5e189 100644
--- a/setools/policyrep/rbacrule.pxi
+++ b/setools/policyrep/rbacrule.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, 2016, Tresys Technology, LLC
# Copyright 2016-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
#
diff --git a/setools/policyrep/role.pxi b/setools/policyrep/role.pxi
index 3af8a3f..2ce4447 100644
--- a/setools/policyrep/role.pxi
+++ b/setools/policyrep/role.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, Tresys Technology, LLC
# Copyright 2017-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
diff --git a/setools/policyrep/rule.pxi b/setools/policyrep/rule.pxi
index a135e17..1d3edc0 100644
--- a/setools/policyrep/rule.pxi
+++ b/setools/policyrep/rule.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, 2016, Tresys Technology, LLC
# Copyright 2017-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
cdef class PolicyRule(PolicyObject):
diff --git a/setools/policyrep/selinux.pxd b/setools/policyrep/selinux.pxd
index 1686831..c22e6ec 100644
--- a/setools/policyrep/selinux.pxd
+++ b/setools/policyrep/selinux.pxd
@@ -1,20 +1,6 @@
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
# Directly use libselinux rather than the Python bindings, since
diff --git a/setools/policyrep/selinuxpolicy.pxi b/setools/policyrep/selinuxpolicy.pxi
index afbf9a4..9267a0c 100644
--- a/setools/policyrep/selinuxpolicy.pxi
+++ b/setools/policyrep/selinuxpolicy.pxi
@@ -1,21 +1,7 @@
# Copyright 2014-2016, Tresys Technology, LLC
# Copyright 2016-2019, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
# pylint: disable=too-many-public-methods
diff --git a/setools/policyrep/sepol.pxd b/setools/policyrep/sepol.pxd
index b07ddb7..769498f 100644
--- a/setools/policyrep/sepol.pxd
+++ b/setools/policyrep/sepol.pxd
@@ -1,20 +1,6 @@
# Copyright 2017-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t
diff --git a/setools/policyrep/terule.pxi b/setools/policyrep/terule.pxi
index 760c366..044978d 100644
--- a/setools/policyrep/terule.pxi
+++ b/setools/policyrep/terule.pxi
@@ -1,21 +1,7 @@
# Copyright 2014-2016, Tresys Technology, LLC
# Copyright 2016-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
diff --git a/setools/policyrep/typeattr.pxi b/setools/policyrep/typeattr.pxi
index befeecf..5fe937b 100644
--- a/setools/policyrep/typeattr.pxi
+++ b/setools/policyrep/typeattr.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, Tresys Technology, LLC
# Copyright 2017-2019, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
#
diff --git a/setools/policyrep/user.pxi b/setools/policyrep/user.pxi
index e37af29..bbd5e32 100644
--- a/setools/policyrep/user.pxi
+++ b/setools/policyrep/user.pxi
@@ -1,21 +1,7 @@
# Copyright 2014, Tresys Technology, LLC
# Copyright 2017-2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
cdef object _user_cache = WeakKeyDefaultDict(dict)
diff --git a/setools/policyrep/util.pxi b/setools/policyrep/util.pxi
index abc7be8..e33a5c7 100644
--- a/setools/policyrep/util.pxi
+++ b/setools/policyrep/util.pxi
@@ -1,20 +1,6 @@
# Copyright 2016-2017, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
#
diff --git a/setools/policyrep/xencontext.pxi b/setools/policyrep/xencontext.pxi
index ec377ae..7e87694 100644
--- a/setools/policyrep/xencontext.pxi
+++ b/setools/policyrep/xencontext.pxi
@@ -1,21 +1,7 @@
# Copyright 2017-2018, Chris PeBenito
# Derived from netcontext.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
IomemconRange = collections.namedtuple("IomemconRange", ["low", "high"])
diff --git a/setools/portconquery.py b/setools/portconquery.py
index f0a40cc..61a34a4 100644
--- a/setools/portconquery.py
+++ b/setools/portconquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from socket import IPPROTO_TCP, IPPROTO_UDP
diff --git a/setools/query.py b/setools/query.py
index 93176f9..bed4653 100644
--- a/setools/query.py
+++ b/setools/query.py
@@ -1,21 +1,7 @@
# Copyright 2014-2015, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from abc import ABC, abstractmethod
from logging import Logger
diff --git a/setools/rbacrulequery.py b/setools/rbacrulequery.py
index ca09fa5..1958f76 100644
--- a/setools/rbacrulequery.py
+++ b/setools/rbacrulequery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/rolequery.py b/setools/rolequery.py
index 89d5d29..17b6076 100644
--- a/setools/rolequery.py
+++ b/setools/rolequery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/sensitivityquery.py b/setools/sensitivityquery.py
index 111e159..822a909 100644
--- a/setools/sensitivityquery.py
+++ b/setools/sensitivityquery.py
@@ -1,20 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import Iterable
diff --git a/setools/terulequery.py b/setools/terulequery.py
index 806f885..2ba775e 100644
--- a/setools/terulequery.py
+++ b/setools/terulequery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
from typing import cast, Iterable, Optional, Set, Tuple
diff --git a/setools/typeattrquery.py b/setools/typeattrquery.py
index 5563201..0075235 100644
--- a/setools/typeattrquery.py
+++ b/setools/typeattrquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/typequery.py b/setools/typequery.py
index 671c3f7..d1449c4 100644
--- a/setools/typequery.py
+++ b/setools/typequery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/userquery.py b/setools/userquery.py
index 7d146e6..2f869f6 100644
--- a/setools/userquery.py
+++ b/setools/userquery.py
@@ -1,20 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
import logging
import re
diff --git a/setools/util.py b/setools/util.py
index d64f428..f27de19 100644
--- a/setools/util.py
+++ b/setools/util.py
@@ -1,20 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
+# SPDX-License-Identifier: LGPL-2.1-only
#
from contextlib import suppress
diff --git a/setoolsgui/__init__.py b/setoolsgui/__init__.py
index 1e8bd3b..1090fa8 100644
--- a/setoolsgui/__init__.py
+++ b/setoolsgui/__init__.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from .apol import ApolMainWindow
diff --git a/setoolsgui/apol/__init__.py b/setoolsgui/apol/__init__.py
index 295fac1..d083641 100644
--- a/setoolsgui/apol/__init__.py
+++ b/setoolsgui/apol/__init__.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from .mainwindow import ApolMainWindow
diff --git a/setoolsgui/apol/analysistab.py b/setoolsgui/apol/analysistab.py
index 3874fa0..a85529b 100644
--- a/setoolsgui/apol/analysistab.py
+++ b/setoolsgui/apol/analysistab.py
@@ -1,20 +1,7 @@
# Copyright 2016, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from typing import Dict, NamedTuple
from enum import Enum
diff --git a/setoolsgui/apol/boolquery.py b/setoolsgui/apol/boolquery.py
index 9d53e0c..5b0cdd8 100644
--- a/setoolsgui/apol/boolquery.py
+++ b/setoolsgui/apol/boolquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/boundsquery.py b/setoolsgui/apol/boundsquery.py
index 321d828..8944d1b 100644
--- a/setoolsgui/apol/boundsquery.py
+++ b/setoolsgui/apol/boundsquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/categoryquery.py b/setoolsgui/apol/categoryquery.py
index 4d582f3..884b415 100644
--- a/setoolsgui/apol/categoryquery.py
+++ b/setoolsgui/apol/categoryquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/chooseanalysis.py b/setoolsgui/apol/chooseanalysis.py
index ee20a0c..892abda 100644
--- a/setoolsgui/apol/chooseanalysis.py
+++ b/setoolsgui/apol/chooseanalysis.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from collections import defaultdict
diff --git a/setoolsgui/apol/commonquery.py b/setoolsgui/apol/commonquery.py
index 57438fd..e90ec54 100644
--- a/setoolsgui/apol/commonquery.py
+++ b/setoolsgui/apol/commonquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/config.py b/setoolsgui/apol/config.py
index 29d9d53..7c27237 100644
--- a/setoolsgui/apol/config.py
+++ b/setoolsgui/apol/config.py
@@ -1,20 +1,7 @@
# Copyright 2019, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import os
diff --git a/setoolsgui/apol/constraintquery.py b/setoolsgui/apol/constraintquery.py
index 0bf5c25..cfa841b 100644
--- a/setoolsgui/apol/constraintquery.py
+++ b/setoolsgui/apol/constraintquery.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/defaultquery.py b/setoolsgui/apol/defaultquery.py
index 8760b04..1efa3c4 100644
--- a/setoolsgui/apol/defaultquery.py
+++ b/setoolsgui/apol/defaultquery.py
@@ -1,21 +1,8 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2016, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/dta.py b/setoolsgui/apol/dta.py
index 62dbf04..a78d960 100644
--- a/setoolsgui/apol/dta.py
+++ b/setoolsgui/apol/dta.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/exception.py b/setoolsgui/apol/exception.py
index 9c29933..eefcf00 100644
--- a/setoolsgui/apol/exception.py
+++ b/setoolsgui/apol/exception.py
@@ -1,20 +1,7 @@
# Copyright 2016, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
diff --git a/setoolsgui/apol/excludetypes.py b/setoolsgui/apol/excludetypes.py
index d51de6e..bee73c5 100644
--- a/setoolsgui/apol/excludetypes.py
+++ b/setoolsgui/apol/excludetypes.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/fsusequery.py b/setoolsgui/apol/fsusequery.py
index 0f95f14..9bb192b 100644
--- a/setoolsgui/apol/fsusequery.py
+++ b/setoolsgui/apol/fsusequery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/genfsconquery.py b/setoolsgui/apol/genfsconquery.py
index 30ab1cd..22112a8 100644
--- a/setoolsgui/apol/genfsconquery.py
+++ b/setoolsgui/apol/genfsconquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/ibendportconquery.py b/setoolsgui/apol/ibendportconquery.py
index 9928d4a..6db99c2 100644
--- a/setoolsgui/apol/ibendportconquery.py
+++ b/setoolsgui/apol/ibendportconquery.py
@@ -1,20 +1,7 @@
# Copyright 2019, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/ibpkeyconquery.py b/setoolsgui/apol/ibpkeyconquery.py
index f6942ec..3efd342 100644
--- a/setoolsgui/apol/ibpkeyconquery.py
+++ b/setoolsgui/apol/ibpkeyconquery.py
@@ -1,20 +1,7 @@
# Copyright 2019, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/infoflow.py b/setoolsgui/apol/infoflow.py
index 28009aa..fb9b409 100644
--- a/setoolsgui/apol/infoflow.py
+++ b/setoolsgui/apol/infoflow.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/initsidquery.py b/setoolsgui/apol/initsidquery.py
index ab8be75..b31c998 100644
--- a/setoolsgui/apol/initsidquery.py
+++ b/setoolsgui/apol/initsidquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/mainwindow.py b/setoolsgui/apol/mainwindow.py
index a107a14..3cdb11d 100644
--- a/setoolsgui/apol/mainwindow.py
+++ b/setoolsgui/apol/mainwindow.py
@@ -1,21 +1,8 @@
# Copyright 2015-2016, Tresys Technology, LLC
# Copyright 2016, 2019, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import os
import shutil
diff --git a/setoolsgui/apol/mlsrulequery.py b/setoolsgui/apol/mlsrulequery.py
index d88d3e7..ba2be45 100644
--- a/setoolsgui/apol/mlsrulequery.py
+++ b/setoolsgui/apol/mlsrulequery.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/netifconquery.py b/setoolsgui/apol/netifconquery.py
index c861f46..ca2405f 100644
--- a/setoolsgui/apol/netifconquery.py
+++ b/setoolsgui/apol/netifconquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/nodeconquery.py b/setoolsgui/apol/nodeconquery.py
index 05435f9..320b0d6 100644
--- a/setoolsgui/apol/nodeconquery.py
+++ b/setoolsgui/apol/nodeconquery.py
@@ -1,21 +1,8 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2016, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import sys
import logging
diff --git a/setoolsgui/apol/objclassquery.py b/setoolsgui/apol/objclassquery.py
index 021b4fa..9744a18 100644
--- a/setoolsgui/apol/objclassquery.py
+++ b/setoolsgui/apol/objclassquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/permmapedit.py b/setoolsgui/apol/permmapedit.py
index 2215fea..97482b3 100644
--- a/setoolsgui/apol/permmapedit.py
+++ b/setoolsgui/apol/permmapedit.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
import copy
diff --git a/setoolsgui/apol/portconquery.py b/setoolsgui/apol/portconquery.py
index 0097b08..50d054f 100644
--- a/setoolsgui/apol/portconquery.py
+++ b/setoolsgui/apol/portconquery.py
@@ -1,21 +1,8 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2016, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/queryupdater.py b/setoolsgui/apol/queryupdater.py
index 6416aae..9b6c155 100644
--- a/setoolsgui/apol/queryupdater.py
+++ b/setoolsgui/apol/queryupdater.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import pyqtSignal, QObject, QThread
diff --git a/setoolsgui/apol/rbacrulequery.py b/setoolsgui/apol/rbacrulequery.py
index bcb7095..0ce4bb9 100644
--- a/setoolsgui/apol/rbacrulequery.py
+++ b/setoolsgui/apol/rbacrulequery.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/rolequery.py b/setoolsgui/apol/rolequery.py
index 974abeb..29983a5 100644
--- a/setoolsgui/apol/rolequery.py
+++ b/setoolsgui/apol/rolequery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/sensitivityquery.py b/setoolsgui/apol/sensitivityquery.py
index 0161431..d5bcbec 100644
--- a/setoolsgui/apol/sensitivityquery.py
+++ b/setoolsgui/apol/sensitivityquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/summary.py b/setoolsgui/apol/summary.py
index f60c069..1aeb2b3 100644
--- a/setoolsgui/apol/summary.py
+++ b/setoolsgui/apol/summary.py
@@ -1,21 +1,8 @@
# Copyright 2016, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/terulequery.py b/setoolsgui/apol/terulequery.py
index 613e866..3064710 100644
--- a/setoolsgui/apol/terulequery.py
+++ b/setoolsgui/apol/terulequery.py
@@ -1,20 +1,7 @@
# Copyright 2015-2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/typeattrquery.py b/setoolsgui/apol/typeattrquery.py
index 3eefdc4..14a4141 100644
--- a/setoolsgui/apol/typeattrquery.py
+++ b/setoolsgui/apol/typeattrquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/typequery.py b/setoolsgui/apol/typequery.py
index b1446f8..2e261cc 100644
--- a/setoolsgui/apol/typequery.py
+++ b/setoolsgui/apol/typequery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/userquery.py b/setoolsgui/apol/userquery.py
index f479d5e..c325888 100644
--- a/setoolsgui/apol/userquery.py
+++ b/setoolsgui/apol/userquery.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/apol/workspace.py b/setoolsgui/apol/workspace.py
index 1d34e4b..0f8ec82 100644
--- a/setoolsgui/apol/workspace.py
+++ b/setoolsgui/apol/workspace.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import re
import logging
diff --git a/setoolsgui/boolmodel.py b/setoolsgui/boolmodel.py
index e605b7e..0d698c9 100644
--- a/setoolsgui/boolmodel.py
+++ b/setoolsgui/boolmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPalette, QTextCursor
diff --git a/setoolsgui/boundsmodel.py b/setoolsgui/boundsmodel.py
index 8a02013..c84f612 100644
--- a/setoolsgui/boundsmodel.py
+++ b/setoolsgui/boundsmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
diff --git a/setoolsgui/commonmodel.py b/setoolsgui/commonmodel.py
index 7c6bff8..a6f6fed 100644
--- a/setoolsgui/commonmodel.py
+++ b/setoolsgui/commonmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPalette, QTextCursor
diff --git a/setoolsgui/constraintmodel.py b/setoolsgui/constraintmodel.py
index 75bd578..122dff0 100644
--- a/setoolsgui/constraintmodel.py
+++ b/setoolsgui/constraintmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
from setools.exception import ConstraintUseError
diff --git a/setoolsgui/defaultmodel.py b/setoolsgui/defaultmodel.py
index 379395f..b9a6a58 100644
--- a/setoolsgui/defaultmodel.py
+++ b/setoolsgui/defaultmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from contextlib import suppress
diff --git a/setoolsgui/details.py b/setoolsgui/details.py
index 40f3e2d..4eb7006 100644
--- a/setoolsgui/details.py
+++ b/setoolsgui/details.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
diff --git a/setoolsgui/fsusemodel.py b/setoolsgui/fsusemodel.py
index 1c5001b..2b3a3f4 100644
--- a/setoolsgui/fsusemodel.py
+++ b/setoolsgui/fsusemodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
diff --git a/setoolsgui/genfsconmodel.py b/setoolsgui/genfsconmodel.py
index e533fb5..6fc4640 100644
--- a/setoolsgui/genfsconmodel.py
+++ b/setoolsgui/genfsconmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import stat
diff --git a/setoolsgui/getdetailslist.py b/setoolsgui/getdetailslist.py
index 18c4185..df7149d 100644
--- a/setoolsgui/getdetailslist.py
+++ b/setoolsgui/getdetailslist.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtGui import QCursor
from PyQt5.QtWidgets import QAction, QListView, QMenu
diff --git a/setoolsgui/ibendportconmodel.py b/setoolsgui/ibendportconmodel.py
index 0f63181..199932d 100644
--- a/setoolsgui/ibendportconmodel.py
+++ b/setoolsgui/ibendportconmodel.py
@@ -1,20 +1,7 @@
# Copyright 2019, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
diff --git a/setoolsgui/ibpkeyconmodel.py b/setoolsgui/ibpkeyconmodel.py
index 248bcff..f3cd952 100644
--- a/setoolsgui/ibpkeyconmodel.py
+++ b/setoolsgui/ibpkeyconmodel.py
@@ -1,20 +1,7 @@
# Copyright 2019, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
diff --git a/setoolsgui/initsidmodel.py b/setoolsgui/initsidmodel.py
index 1885e81..1155a50 100644
--- a/setoolsgui/initsidmodel.py
+++ b/setoolsgui/initsidmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
diff --git a/setoolsgui/listview.py b/setoolsgui/listview.py
index 9572fa4..a4beda5 100644
--- a/setoolsgui/listview.py
+++ b/setoolsgui/listview.py
@@ -1,20 +1,7 @@
# Copyright 2016, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
from collections import defaultdict
diff --git a/setoolsgui/logtosignal.py b/setoolsgui/logtosignal.py
index 34630ea..7678f09 100644
--- a/setoolsgui/logtosignal.py
+++ b/setoolsgui/logtosignal.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from logging import Formatter, Handler, INFO
diff --git a/setoolsgui/mlsmodel.py b/setoolsgui/mlsmodel.py
index 7852a97..8dfb280 100644
--- a/setoolsgui/mlsmodel.py
+++ b/setoolsgui/mlsmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPalette, QTextCursor
diff --git a/setoolsgui/mlsrulemodel.py b/setoolsgui/mlsrulemodel.py
index 439923f..4fa4f18 100644
--- a/setoolsgui/mlsrulemodel.py
+++ b/setoolsgui/mlsrulemodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
diff --git a/setoolsgui/models.py b/setoolsgui/models.py
index 29dbb15..fc7bf3d 100644
--- a/setoolsgui/models.py
+++ b/setoolsgui/models.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import logging
from contextlib import suppress
diff --git a/setoolsgui/netifconmodel.py b/setoolsgui/netifconmodel.py
index e3ed20b..3d2e4b8 100644
--- a/setoolsgui/netifconmodel.py
+++ b/setoolsgui/netifconmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
diff --git a/setoolsgui/nodeconmodel.py b/setoolsgui/nodeconmodel.py
index 01ec5db..ec4d66e 100644
--- a/setoolsgui/nodeconmodel.py
+++ b/setoolsgui/nodeconmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
diff --git a/setoolsgui/objclassmodel.py b/setoolsgui/objclassmodel.py
index cb29589..9823b73 100644
--- a/setoolsgui/objclassmodel.py
+++ b/setoolsgui/objclassmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from itertools import chain
diff --git a/setoolsgui/portconmodel.py b/setoolsgui/portconmodel.py
index 288b4a0..39d2c72 100644
--- a/setoolsgui/portconmodel.py
+++ b/setoolsgui/portconmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
diff --git a/setoolsgui/rbacrulemodel.py b/setoolsgui/rbacrulemodel.py
index b0f0c85..d8df940 100644
--- a/setoolsgui/rbacrulemodel.py
+++ b/setoolsgui/rbacrulemodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
from setools.exception import RuleUseError
diff --git a/setoolsgui/rolemodel.py b/setoolsgui/rolemodel.py
index c843fef..004f4e7 100644
--- a/setoolsgui/rolemodel.py
+++ b/setoolsgui/rolemodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPalette, QTextCursor
diff --git a/setoolsgui/tableview.py b/setoolsgui/tableview.py
index d45b1b4..0b84d7f 100644
--- a/setoolsgui/tableview.py
+++ b/setoolsgui/tableview.py
@@ -1,20 +1,7 @@
# Copyright 2016, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import csv
diff --git a/setoolsgui/terulemodel.py b/setoolsgui/terulemodel.py
index cc6fe36..4d51ac8 100644
--- a/setoolsgui/terulemodel.py
+++ b/setoolsgui/terulemodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
from setools.exception import RuleNotConditional, RuleUseError
diff --git a/setoolsgui/treeview.py b/setoolsgui/treeview.py
index 023aabc..8a821ff 100644
--- a/setoolsgui/treeview.py
+++ b/setoolsgui/treeview.py
@@ -1,20 +1,7 @@
# Copyright 2016, Chris PeBenito
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt, QModelIndex
from PyQt5.QtGui import QKeySequence, QCursor
diff --git a/setoolsgui/typeattrmodel.py b/setoolsgui/typeattrmodel.py
index 39ed04f..1a752fc 100644
--- a/setoolsgui/typeattrmodel.py
+++ b/setoolsgui/typeattrmodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPalette, QTextCursor
diff --git a/setoolsgui/typemodel.py b/setoolsgui/typemodel.py
index 2ba601c..841cc42 100644
--- a/setoolsgui/typemodel.py
+++ b/setoolsgui/typemodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPalette, QTextCursor
diff --git a/setoolsgui/usermodel.py b/setoolsgui/usermodel.py
index 52be76b..d0a4b0e 100644
--- a/setoolsgui/usermodel.py
+++ b/setoolsgui/usermodel.py
@@ -1,20 +1,7 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
from PyQt5.QtCore import Qt, QModelIndex
from setools.exception import MLSDisabled
diff --git a/setoolsgui/widget.py b/setoolsgui/widget.py
index b24c333..e236623 100644
--- a/setoolsgui/widget.py
+++ b/setoolsgui/widget.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
+# SPDX-License-Identifier: LGPL-2.1-only
#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with SETools. If not, see
-# .
#
import sys
from errno import ENOENT
diff --git a/tests/__init__.py b/tests/__init__.py
index 7762dfe..a436e51 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,19 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
from . import boolquery
from . import boundsquery
diff --git a/tests/boolquery.py b/tests/boolquery.py
index 403705c..5d083b9 100644
--- a/tests/boolquery.py
+++ b/tests/boolquery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/boundsquery.py b/tests/boundsquery.py
index 849864c..f1be083 100644
--- a/tests/boundsquery.py
+++ b/tests/boundsquery.py
@@ -1,19 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/categoryquery.py b/tests/categoryquery.py
index a5e4e80..ba9a700 100644
--- a/tests/categoryquery.py
+++ b/tests/categoryquery.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/commonquery.py b/tests/commonquery.py
index 09593dd..ae03185 100644
--- a/tests/commonquery.py
+++ b/tests/commonquery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/conditionalinfoflow.py b/tests/conditionalinfoflow.py
index 636bdda..71bdf8f 100644
--- a/tests/conditionalinfoflow.py
+++ b/tests/conditionalinfoflow.py
@@ -1,19 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/constraintquery.py b/tests/constraintquery.py
index 964df68..9705531 100644
--- a/tests/constraintquery.py
+++ b/tests/constraintquery.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/defaultquery.py b/tests/defaultquery.py
index 508816c..9e673eb 100644
--- a/tests/defaultquery.py
+++ b/tests/defaultquery.py
@@ -1,19 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/devicetreeconquery.py b/tests/devicetreeconquery.py
index 1a2444a..470356c 100644
--- a/tests/devicetreeconquery.py
+++ b/tests/devicetreeconquery.py
@@ -1,19 +1,6 @@
# Derived from tests/portconquery.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/diff.py b/tests/diff.py
index ce06dc1..d09838c 100644
--- a/tests/diff.py
+++ b/tests/diff.py
@@ -1,20 +1,7 @@
# Copyright 2015-2016, Tresys Technology, LLC
# Copyright 2016, 2017, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/dta.py b/tests/dta.py
index a0cc938..7f9bbc9 100644
--- a/tests/dta.py
+++ b/tests/dta.py
@@ -1,19 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/fsusequery.py b/tests/fsusequery.py
index 047a816..4b5be83 100644
--- a/tests/fsusequery.py
+++ b/tests/fsusequery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/genfsconquery.py b/tests/genfsconquery.py
index c71da48..472fcde 100644
--- a/tests/genfsconquery.py
+++ b/tests/genfsconquery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/ibendportconquery.py b/tests/ibendportconquery.py
index 47f024d..14fd248 100644
--- a/tests/ibendportconquery.py
+++ b/tests/ibendportconquery.py
@@ -1,19 +1,6 @@
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/ibpkeyconquery.py b/tests/ibpkeyconquery.py
index 6dc7924..53a531b 100644
--- a/tests/ibpkeyconquery.py
+++ b/tests/ibpkeyconquery.py
@@ -1,19 +1,6 @@
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/infoflow.py b/tests/infoflow.py
index aa0e44a..5a8f745 100644
--- a/tests/infoflow.py
+++ b/tests/infoflow.py
@@ -1,19 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/initsidquery.py b/tests/initsidquery.py
index d93beae..cf79555 100644
--- a/tests/initsidquery.py
+++ b/tests/initsidquery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/iomemconquery.py b/tests/iomemconquery.py
index c2536ec..b9a0d46 100644
--- a/tests/iomemconquery.py
+++ b/tests/iomemconquery.py
@@ -1,19 +1,6 @@
# Derived from tests/portconquery.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/ioportconquery.py b/tests/ioportconquery.py
index 420fc9f..0f54d66 100644
--- a/tests/ioportconquery.py
+++ b/tests/ioportconquery.py
@@ -1,19 +1,6 @@
# Derived from tests/portconquery.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/mixins.py b/tests/mixins.py
index c5e9994..4b2a690 100644
--- a/tests/mixins.py
+++ b/tests/mixins.py
@@ -1,20 +1,7 @@
"""Unit test mixin classes."""
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# pylint: disable=too-few-public-methods
import unittest
diff --git a/tests/mlsrulequery.py b/tests/mlsrulequery.py
index 7315b2f..4d9fb2a 100644
--- a/tests/mlsrulequery.py
+++ b/tests/mlsrulequery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/netifconquery.py b/tests/netifconquery.py
index 2d79174..4cdb939 100644
--- a/tests/netifconquery.py
+++ b/tests/netifconquery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/nodeconquery.py b/tests/nodeconquery.py
index 98a4b5b..7c0f40d 100644
--- a/tests/nodeconquery.py
+++ b/tests/nodeconquery.py
@@ -1,20 +1,7 @@
# Copyright 2014, Tresys Technology, LLC
# Copyright 2017, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/objclassquery.py b/tests/objclassquery.py
index f5964e3..a0f7284 100644
--- a/tests/objclassquery.py
+++ b/tests/objclassquery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/pcideviceconquery.py b/tests/pcideviceconquery.py
index 9846ee9..a8d4d7e 100644
--- a/tests/pcideviceconquery.py
+++ b/tests/pcideviceconquery.py
@@ -1,19 +1,6 @@
# Derived from tests/portconquery.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/permmap.py b/tests/permmap.py
index 317f23c..bded41e 100644
--- a/tests/permmap.py
+++ b/tests/permmap.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import unittest
import os
diff --git a/tests/pirqconquery.py b/tests/pirqconquery.py
index 9461611..21dce3d 100644
--- a/tests/pirqconquery.py
+++ b/tests/pirqconquery.py
@@ -1,19 +1,6 @@
# Derived from tests/portconquery.py
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/polcapquery.py b/tests/polcapquery.py
index 40403a8..577a8a6 100644
--- a/tests/polcapquery.py
+++ b/tests/polcapquery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/policyrep/__init__.py b/tests/policyrep/__init__.py
index 5572360..c8fab04 100644
--- a/tests/policyrep/__init__.py
+++ b/tests/policyrep/__init__.py
@@ -1,19 +1,6 @@
# Copyright 2015-2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
from . import default
from . import initsid
diff --git a/tests/policyrep/default.py b/tests/policyrep/default.py
index b1c810b..cc67e87 100644
--- a/tests/policyrep/default.py
+++ b/tests/policyrep/default.py
@@ -1,19 +1,6 @@
# Copyright 2016, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable
diff --git a/tests/policyrep/initsid.py b/tests/policyrep/initsid.py
index 4af0dae..1406752 100644
--- a/tests/policyrep/initsid.py
+++ b/tests/policyrep/initsid.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable,no-member
diff --git a/tests/policyrep/mls.py b/tests/policyrep/mls.py
index c833a39..d22377b 100644
--- a/tests/policyrep/mls.py
+++ b/tests/policyrep/mls.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable,no-member
diff --git a/tests/policyrep/mlsrule.py b/tests/policyrep/mlsrule.py
index e00fe64..7c8b1d3 100644
--- a/tests/policyrep/mlsrule.py
+++ b/tests/policyrep/mlsrule.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable
diff --git a/tests/policyrep/objclass.py b/tests/policyrep/objclass.py
index 7be20cf..b8a7b54 100644
--- a/tests/policyrep/objclass.py
+++ b/tests/policyrep/objclass.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable,no-member
diff --git a/tests/policyrep/polcap.py b/tests/policyrep/polcap.py
index 5c80af5..c5ccc60 100644
--- a/tests/policyrep/polcap.py
+++ b/tests/policyrep/polcap.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable
diff --git a/tests/policyrep/rbacrule.py b/tests/policyrep/rbacrule.py
index ef37096..cf2b01c 100644
--- a/tests/policyrep/rbacrule.py
+++ b/tests/policyrep/rbacrule.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable
diff --git a/tests/policyrep/role.py b/tests/policyrep/role.py
index 4197172..75863a4 100644
--- a/tests/policyrep/role.py
+++ b/tests/policyrep/role.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable,no-member
diff --git a/tests/policyrep/selinuxpolicy.py b/tests/policyrep/selinuxpolicy.py
index cdfd8ae..ddca49b 100644
--- a/tests/policyrep/selinuxpolicy.py
+++ b/tests/policyrep/selinuxpolicy.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import copy
diff --git a/tests/policyrep/symbol.py b/tests/policyrep/symbol.py
index 361ac41..86c765b 100644
--- a/tests/policyrep/symbol.py
+++ b/tests/policyrep/symbol.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable
diff --git a/tests/policyrep/terule.py b/tests/policyrep/terule.py
index f988c95..335317d 100644
--- a/tests/policyrep/terule.py
+++ b/tests/policyrep/terule.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable
diff --git a/tests/policyrep/typeattr.py b/tests/policyrep/typeattr.py
index f952aca..b16bc97 100644
--- a/tests/policyrep/typeattr.py
+++ b/tests/policyrep/typeattr.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable,no-member
diff --git a/tests/policyrep/user.py b/tests/policyrep/user.py
index f0660fe..1ed7983 100644
--- a/tests/policyrep/user.py
+++ b/tests/policyrep/user.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# Until this is fixed for cython:
# pylint: disable=undefined-variable,no-member
diff --git a/tests/policyrep/util.py b/tests/policyrep/util.py
index ba8c111..3124cda 100644
--- a/tests/policyrep/util.py
+++ b/tests/policyrep/util.py
@@ -1,20 +1,7 @@
# Copyright 2015, Tresys Technology, LLC
# Copyright 2018, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import subprocess
diff --git a/tests/portconquery.py b/tests/portconquery.py
index 16f78e8..f87f521 100644
--- a/tests/portconquery.py
+++ b/tests/portconquery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/rbacrulequery.py b/tests/rbacrulequery.py
index ed04d43..a0d0fcd 100644
--- a/tests/rbacrulequery.py
+++ b/tests/rbacrulequery.py
@@ -1,20 +1,7 @@
"""RBAC rule query unit tests."""
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# pylint: disable=invalid-name,too-many-public-methods
import os
diff --git a/tests/rolequery.py b/tests/rolequery.py
index bd855b8..ba31511 100644
--- a/tests/rolequery.py
+++ b/tests/rolequery.py
@@ -1,19 +1,6 @@
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/sensitivityquery.py b/tests/sensitivityquery.py
index 8a8b8fc..4796539 100644
--- a/tests/sensitivityquery.py
+++ b/tests/sensitivityquery.py
@@ -1,19 +1,6 @@
# Copyright 2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/terulequery.py b/tests/terulequery.py
index d5972ee..61b619b 100644
--- a/tests/terulequery.py
+++ b/tests/terulequery.py
@@ -1,20 +1,7 @@
"""Type enforcement rule query unit tests."""
# Copyright 2014, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
# pylint: disable=invalid-name,too-many-public-methods
import os
diff --git a/tests/typeattrquery.py b/tests/typeattrquery.py
index 9c66c3f..68f51f1 100644
--- a/tests/typeattrquery.py
+++ b/tests/typeattrquery.py
@@ -1,19 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/typequery.py b/tests/typequery.py
index aa37dfa..d78dd61 100644
--- a/tests/typequery.py
+++ b/tests/typequery.py
@@ -1,20 +1,7 @@
# Copyright 2014-2015, Tresys Technology, LLC
# Copyright 2019, Chris PeBenito
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest
diff --git a/tests/userquery.py b/tests/userquery.py
index c5f7b18..ed51e94 100644
--- a/tests/userquery.py
+++ b/tests/userquery.py
@@ -1,19 +1,6 @@
# Copyright 2014-2015, Tresys Technology, LLC
#
-# This file is part of SETools.
-#
-# SETools is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# SETools is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SETools. If not, see .
+# SPDX-License-Identifier: GPL-2.0-only
#
import os
import unittest