Mageia Bugzilla – Attachment 6899 Details for
Bug 16524
Adapting msec to python 3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Adaption of shebang
0001-Adapt-shebang.patch (text/plain), 5.38 KB, created by
papoteur
on 2015-08-04 20:30:24 CEST
(
hide
)
Description:
Adaption of shebang
Filename:
MIME Type:
Creator:
papoteur
Created:
2015-08-04 20:30:24 CEST
Size:
5.38 KB
patch
obsolete
>From 042119d75dc85c7482262793a30c11b16120b6f3 Mon Sep 17 00:00:00 2001 >From: Papoteur <papoteur@mageialinux-online.org> >Date: Mon, 3 Aug 2015 22:29:54 +0200 >Subject: [PATCH] Adapt shebang > >--- > src/msec/compile.py | 2 +- > src/msec/config.py | 2 +- > src/msec/help_draksec.py | 2 +- > src/msec/libmsec.py | 2 +- > src/msec/man.py | 2 +- > src/msec/msec.py | 2 +- > src/msec/msecgui.py | 2 +- > src/msec/msecperms.py | 2 +- > src/msec/plugins/audit.py | 2 +- > src/msec/plugins/log.py | 2 +- > src/msec/plugins/msec.py | 2 +- > src/msec/plugins/network.py | 2 +- > src/msec/plugins/pam.py | 2 +- > src/msec/plugins/sectool.py | 2 +- > src/msec/plugins/sudo.py | 2 +- > src/msec/tools.py | 2 +- > 16 files changed, 16 insertions(+), 16 deletions(-) > >diff --git a/src/msec/compile.py b/src/msec/compile.py >index 150a180..2983271 100755 >--- a/src/msec/compile.py >+++ b/src/msec/compile.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > ############################################################################# > # File : compile.py > # Package : rpmlint >diff --git a/src/msec/config.py b/src/msec/config.py >index 8caacfc..6242fc7 100755 >--- a/src/msec/config.py >+++ b/src/msec/config.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > """This is the configuration file for msec. > The following variables are defined here: > SECURITY_LEVELS: list of supported security levels >diff --git a/src/msec/help_draksec.py b/src/msec/help_draksec.py >index f4536a3..6863038 100755 >--- a/src/msec/help_draksec.py >+++ b/src/msec/help_draksec.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > # > # This script creates DrakSec help strings from libmsec code docstrings. > # >diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py >index 79a1ff7..17e8dd2 100755 >--- a/src/msec/libmsec.py >+++ b/src/msec/libmsec.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > """This is the main msec module, responsible for all msec operations. > > The following classes are defined here: >diff --git a/src/msec/man.py b/src/msec/man.py >index a937b07..d3983b5 100755 >--- a/src/msec/man.py >+++ b/src/msec/man.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > #--------------------------------------------------------------- > # Project : Mandriva Linux > # Module : share >diff --git a/src/msec/msec.py b/src/msec/msec.py >index f98a793..a44267c 100755 >--- a/src/msec/msec.py >+++ b/src/msec/msec.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > """This is the main msec module. > It checks/sets the security levels, configures security variables, > and works as a frontend to libmsec. >diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py >index 765681d..0d64dea 100755 >--- a/src/msec/msecgui.py >+++ b/src/msec/msecgui.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > """ > This is graphical frontend to msec. > """ >diff --git a/src/msec/msecperms.py b/src/msec/msecperms.py >index 73a3533..df3cdb1 100755 >--- a/src/msec/msecperms.py >+++ b/src/msec/msecperms.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > """This file is responsible for permissions checking and > (optionally) enforcing. > """ >diff --git a/src/msec/plugins/audit.py b/src/msec/plugins/audit.py >index cbc82cc..dc5e6e0 100755 >--- a/src/msec/plugins/audit.py >+++ b/src/msec/plugins/audit.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > """Msec plugin for auditing checks""" > > # main plugin class name >diff --git a/src/msec/plugins/log.py b/src/msec/plugins/log.py >index 06d210f..3284cbc 100755 >--- a/src/msec/plugins/log.py >+++ b/src/msec/plugins/log.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > """Msec plugin for log file handling""" > > # main plugin class name >diff --git a/src/msec/plugins/msec.py b/src/msec/plugins/msec.py >index 554574c..59366a4 100755 >--- a/src/msec/plugins/msec.py >+++ b/src/msec/plugins/msec.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > """Msec plugin for enforcing local security settings""" > > # main plugin class name >diff --git a/src/msec/plugins/network.py b/src/msec/plugins/network.py >index 307ea87..a4f5400 100755 >--- a/src/msec/plugins/network.py >+++ b/src/msec/plugins/network.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > """Msec plugin for enforcing network security settings""" > > # main plugin class name >diff --git a/src/msec/plugins/pam.py b/src/msec/plugins/pam.py >index c534d5a..776ad70 100755 >--- a/src/msec/plugins/pam.py >+++ b/src/msec/plugins/pam.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > """Msec plugin for enforcing pam-related settings""" > > # main plugin class name >diff --git a/src/msec/plugins/sectool.py b/src/msec/plugins/sectool.py >index 62dc341..a04dc51 100755 >--- a/src/msec/plugins/sectool.py >+++ b/src/msec/plugins/sectool.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > """Msec plugin for running sectool tests""" > > # main plugin class name >diff --git a/src/msec/plugins/sudo.py b/src/msec/plugins/sudo.py >index 6ab68d8..2df7fbd 100755 >--- a/src/msec/plugins/sudo.py >+++ b/src/msec/plugins/sudo.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > """Msec plugin for sudo""" > > # main plugin class name >diff --git a/src/msec/tools.py b/src/msec/tools.py >index 61e3846..28c303b 100755 >--- a/src/msec/tools.py >+++ b/src/msec/tools.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > # > # msec: helper tools > # >-- >2.3.8 >
From 042119d75dc85c7482262793a30c11b16120b6f3 Mon Sep 17 00:00:00 2001 From: Papoteur <papoteur@mageialinux-online.org> Date: Mon, 3 Aug 2015 22:29:54 +0200 Subject: [PATCH] Adapt shebang --- src/msec/compile.py | 2 +- src/msec/config.py | 2 +- src/msec/help_draksec.py | 2 +- src/msec/libmsec.py | 2 +- src/msec/man.py | 2 +- src/msec/msec.py | 2 +- src/msec/msecgui.py | 2 +- src/msec/msecperms.py | 2 +- src/msec/plugins/audit.py | 2 +- src/msec/plugins/log.py | 2 +- src/msec/plugins/msec.py | 2 +- src/msec/plugins/network.py | 2 +- src/msec/plugins/pam.py | 2 +- src/msec/plugins/sectool.py | 2 +- src/msec/plugins/sudo.py | 2 +- src/msec/tools.py | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/msec/compile.py b/src/msec/compile.py index 150a180..2983271 100755 --- a/src/msec/compile.py +++ b/src/msec/compile.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O ############################################################################# # File : compile.py # Package : rpmlint diff --git a/src/msec/config.py b/src/msec/config.py index 8caacfc..6242fc7 100755 --- a/src/msec/config.py +++ b/src/msec/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O """This is the configuration file for msec. The following variables are defined here: SECURITY_LEVELS: list of supported security levels diff --git a/src/msec/help_draksec.py b/src/msec/help_draksec.py index f4536a3..6863038 100755 --- a/src/msec/help_draksec.py +++ b/src/msec/help_draksec.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # This script creates DrakSec help strings from libmsec code docstrings. # diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py index 79a1ff7..17e8dd2 100755 --- a/src/msec/libmsec.py +++ b/src/msec/libmsec.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O """This is the main msec module, responsible for all msec operations. The following classes are defined here: diff --git a/src/msec/man.py b/src/msec/man.py index a937b07..d3983b5 100755 --- a/src/msec/man.py +++ b/src/msec/man.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #--------------------------------------------------------------- # Project : Mandriva Linux # Module : share diff --git a/src/msec/msec.py b/src/msec/msec.py index f98a793..a44267c 100755 --- a/src/msec/msec.py +++ b/src/msec/msec.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O """This is the main msec module. It checks/sets the security levels, configures security variables, and works as a frontend to libmsec. diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py index 765681d..0d64dea 100755 --- a/src/msec/msecgui.py +++ b/src/msec/msecgui.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O """ This is graphical frontend to msec. """ diff --git a/src/msec/msecperms.py b/src/msec/msecperms.py index 73a3533..df3cdb1 100755 --- a/src/msec/msecperms.py +++ b/src/msec/msecperms.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O """This file is responsible for permissions checking and (optionally) enforcing. """ diff --git a/src/msec/plugins/audit.py b/src/msec/plugins/audit.py index cbc82cc..dc5e6e0 100755 --- a/src/msec/plugins/audit.py +++ b/src/msec/plugins/audit.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """Msec plugin for auditing checks""" # main plugin class name diff --git a/src/msec/plugins/log.py b/src/msec/plugins/log.py index 06d210f..3284cbc 100755 --- a/src/msec/plugins/log.py +++ b/src/msec/plugins/log.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """Msec plugin for log file handling""" # main plugin class name diff --git a/src/msec/plugins/msec.py b/src/msec/plugins/msec.py index 554574c..59366a4 100755 --- a/src/msec/plugins/msec.py +++ b/src/msec/plugins/msec.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """Msec plugin for enforcing local security settings""" # main plugin class name diff --git a/src/msec/plugins/network.py b/src/msec/plugins/network.py index 307ea87..a4f5400 100755 --- a/src/msec/plugins/network.py +++ b/src/msec/plugins/network.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """Msec plugin for enforcing network security settings""" # main plugin class name diff --git a/src/msec/plugins/pam.py b/src/msec/plugins/pam.py index c534d5a..776ad70 100755 --- a/src/msec/plugins/pam.py +++ b/src/msec/plugins/pam.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """Msec plugin for enforcing pam-related settings""" # main plugin class name diff --git a/src/msec/plugins/sectool.py b/src/msec/plugins/sectool.py index 62dc341..a04dc51 100755 --- a/src/msec/plugins/sectool.py +++ b/src/msec/plugins/sectool.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """Msec plugin for running sectool tests""" # main plugin class name diff --git a/src/msec/plugins/sudo.py b/src/msec/plugins/sudo.py index 6ab68d8..2df7fbd 100755 --- a/src/msec/plugins/sudo.py +++ b/src/msec/plugins/sudo.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """Msec plugin for sudo""" # main plugin class name diff --git a/src/msec/tools.py b/src/msec/tools.py index 61e3846..28c303b 100755 --- a/src/msec/tools.py +++ b/src/msec/tools.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # msec: helper tools # -- 2.3.8
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16524
:
6881
|
6883
|
6884
|
6885
|
6886
|
6898
| 6899 |
6900
|
6901
|
6913
|
6922
|
6928