Skip to content

Commit

Permalink
Merge pull request #456 from pebenito/drop-module-versioning
Browse files Browse the repository at this point in the history
Drop module versioning.
  • Loading branch information
pebenito authored Jan 6, 2022
2 parents 60a3d5a + 5781a23 commit bfc448e
Show file tree
Hide file tree
Showing 396 changed files with 401 additions and 400 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ jobs:
- name: Run file context checker
run: python3 -t -t -E -W error testing/check_fc_files.py

- name: Run SELint
run: |
# disable C-005 (Permissions in av rule or class declaration not ordered) for now: needs fixing
# disable W-005 (Interface call from module not in optional_policy block): refpolicy does not follow this rule
selint --source --recursive --summary --fail --disable C-005 --disable W-005 policy
# Disable selint until it can handle a single parameter policy_module().
# - name: Run SELint
# run: |
# # disable C-005 (Permissions in av rule or class declaration not ordered) for now: needs fixing
# # disable W-005 (Interface call from module not in optional_policy block): refpolicy does not follow this rule
# #selint --source --recursive --summary --fail --disable C-005 --disable W-005 policy

build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/acct.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(acct, 1.9.0)
policy_module(acct)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/aide.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(aide, 1.9.0)
policy_module(aide)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/alsa.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(alsa, 1.22.0)
policy_module(alsa)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/amanda.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(amanda, 1.19.0)
policy_module(amanda)

#######################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/amtu.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(amtu, 1.5.0)
policy_module(amtu)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/anaconda.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(anaconda, 1.8.0)
policy_module(anaconda)

gen_require(`
class passwd all_passwd_perms;
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/apt.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(apt, 1.16.0)
policy_module(apt)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/backup.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(backup, 1.11.0)
policy_module(backup)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/bacula.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(bacula, 1.7.0)
policy_module(bacula)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/blueman.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(blueman, 1.4.0)
policy_module(blueman)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/bootloader.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(bootloader, 1.23.0)
policy_module(bootloader)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/brctl.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(brctl, 1.8.0)
policy_module(brctl)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/certwatch.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(certwatch, 1.9.0)
policy_module(certwatch)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/cfengine.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(cfengine, 1.4.0)
policy_module(cfengine)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/chkrootkit.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(chkrootkit, 1.1.0)
policy_module(chkrootkit)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/consoletype.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(consoletype, 1.14.0)
policy_module(consoletype)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/dmesg.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(dmesg, 1.9.0)
policy_module(dmesg)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/dmidecode.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(dmidecode, 1.10.0)
policy_module(dmidecode)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/dphysswapfile.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(dphysswapfile, 1.4.0)
policy_module(dphysswapfile)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/dpkg.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(dpkg, 1.17.0)
policy_module(dpkg)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/fakehwclock.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(fakehwclock, 1.3.0)
policy_module(fakehwclock)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/firstboot.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(firstboot, 1.16.0)
policy_module(firstboot)

gen_require(`
class passwd { passwd chfn chsh rootok };
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/hwloc.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(hwloc, 1.4.0)
policy_module(hwloc)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/kdump.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(kdump, 1.6.0)
policy_module(kdump)

#######################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/kismet.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(kismet, 1.13.0)
policy_module(kismet)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/logrotate.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(logrotate, 1.26.0)
policy_module(logrotate)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/logwatch.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(logwatch, 1.17.0)
policy_module(logwatch)

#################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/mcelog.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(mcelog, 1.8.0)
policy_module(mcelog)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/mrtg.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(mrtg, 1.15.0)
policy_module(mrtg)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/ncftool.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(ncftool, 1.4.0)
policy_module(ncftool)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/netutils.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(netutils, 1.21.1)
policy_module(netutils)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/passenger.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(passenger, 1.5.0)
policy_module(passenger)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/portage.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(portage, 1.20.0)
policy_module(portage)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/prelink.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(prelink, 1.12.0)
policy_module(prelink)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/puppet.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(puppet, 1.10.0)
policy_module(puppet)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/quota.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(quota, 1.13.0)
policy_module(quota)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/rkhunter.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(rkhunter, 1.2.0)
policy_module(rkhunter)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/rpm.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(rpm, 1.26.1)
policy_module(rpm)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/samhain.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(samhain, 1.8.0)
policy_module(samhain)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/sblim.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(sblim, 1.6.0)
policy_module(sblim)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/shorewall.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(shorewall, 1.9.0)
policy_module(shorewall)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/shutdown.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(shutdown, 1.7.1)
policy_module(shutdown)

## <desc>
## <p>
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/sosreport.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(sosreport, 1.9.0)
policy_module(sosreport)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/su.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(su, 1.16.2)
policy_module(su)

## <desc>
## <p>
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/sudo.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(sudo, 1.17.1)
policy_module(sudo)

## <desc>
## <p>
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/sxid.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(sxid, 1.12.0)
policy_module(sxid)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/tboot.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(tboot, 1.2.0)
policy_module(tboot)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/tmpreaper.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(tmpreaper, 1.9.1)
policy_module(tmpreaper)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/tripwire.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(tripwire, 1.4.0)
policy_module(tripwire)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/tzdata.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(tzdata, 1.6.0)
policy_module(tzdata)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/updfstab.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(updfstab, 1.8.0)
policy_module(updfstab)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/usbguard.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(usbguard, 1.2.1)
policy_module(usbguard)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/usbmodules.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(usbmodules, 1.5.0)
policy_module(usbmodules)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/usermanage.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(usermanage, 1.25.2)
policy_module(usermanage)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/vbetool.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(vbetool, 1.10.0)
policy_module(vbetool)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/admin/vpn.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(vpn, 1.20.0)
policy_module(vpn)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/apps/awstats.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(awstats, 1.6.0)
policy_module(awstats)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/apps/calamaris.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(calamaris, 1.8.0)
policy_module(calamaris)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/apps/cdrecord.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(cdrecord, 2.8.1)
policy_module(cdrecord)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/apps/chromium.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(chromium, 1.4.1)
policy_module(chromium)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/apps/cpufreqselector.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(cpufreqselector, 1.6.0)
policy_module(cpufreqselector)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/apps/cryfs.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(cryfs, 1.0.1)
policy_module(cryfs)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/apps/evolution.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(evolution, 2.12.1)
policy_module(evolution)

########################################
#
Expand Down
Loading

0 comments on commit bfc448e

Please sign in to comment.