summaryrefslogtreecommitdiffstats
path: root/recipes-security/bastille
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-07-29 16:31:12 -0700
committerArmin Kuster <akuster808@gmail.com>2021-08-01 08:47:08 -0700
commit11a67b861af74d59ccfd609d6d943e966ccff731 (patch)
treece619cf42798050439a4c04ed471ed293f17ede4 /recipes-security/bastille
parentd3a484abf81fc196389480df89cf5c82d13e6381 (diff)
downloadmeta-security-11a67b861af74d59ccfd609d6d943e966ccff731.tar.gz
meta-security: Convert to new override syntax
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security/bastille')
-rw-r--r--recipes-security/bastille/bastille_3.2.1.bb6
-rw-r--r--recipes-security/bastille/files/AccountPermission.pm16
-rw-r--r--recipes-security/bastille/files/FileContent.pm16
3 files changed, 19 insertions, 19 deletions
diff --git a/recipes-security/bastille/bastille_3.2.1.bb b/recipes-security/bastille/bastille_3.2.1.bb
index 0290cae..72281c5 100644
--- a/recipes-security/bastille/bastille_3.2.1.bb
+++ b/recipes-security/bastille/bastille_3.2.1.bb
@@ -6,8 +6,8 @@ LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b" 6LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b"
7# Bash is needed for set +o privileged (check busybox), might also need ncurses 7# Bash is needed for set +o privileged (check busybox), might also need ncurses
8DEPENDS = "virtual/kernel" 8DEPENDS = "virtual/kernel"
9RDEPENDS_${PN} = "perl bash tcl perl-module-getopt-long perl-module-text-wrap lib-perl perl-module-file-path perl-module-mime-base64 perl-module-file-find perl-module-errno perl-module-file-glob perl-module-tie-hash-namedcapture perl-module-file-copy perl-module-english perl-module-exporter perl-module-cwd libcurses-perl coreutils" 9RDEPENDS:${PN} = "perl bash tcl perl-module-getopt-long perl-module-text-wrap lib-perl perl-module-file-path perl-module-mime-base64 perl-module-file-find perl-module-errno perl-module-file-glob perl-module-tie-hash-namedcapture perl-module-file-copy perl-module-english perl-module-exporter perl-module-cwd libcurses-perl coreutils"
10FILES_${PN} += "/run/lock/subsys/bastille" 10FILES:${PN} += "/run/lock/subsys/bastille"
11 11
12SRC_URI = "http://sourceforge.net/projects/bastille-linux/files/bastille-linux/3.2.1/Bastille-3.2.1.tar.bz2 \ 12SRC_URI = "http://sourceforge.net/projects/bastille-linux/files/bastille-linux/3.2.1/Bastille-3.2.1.tar.bz2 \
13 file://AccountPermission.pm \ 13 file://AccountPermission.pm \
@@ -150,4 +150,4 @@ do_install () {
150 ln -s RevertBastille ${D}${sbindir}/UndoBastille 150 ln -s RevertBastille ${D}${sbindir}/UndoBastille
151} 151}
152 152
153FILES_${PN} += "${datadir}/Bastille ${libdir}/Bastille ${libdir}/perl* ${sysconfdir}/*" 153FILES:${PN} += "${datadir}/Bastille ${libdir}/Bastille ${libdir}/perl* ${sysconfdir}/*"
diff --git a/recipes-security/bastille/files/AccountPermission.pm b/recipes-security/bastille/files/AccountPermission.pm
index cfbaab1..132b30c 100644
--- a/recipes-security/bastille/files/AccountPermission.pm
+++ b/recipes-security/bastille/files/AccountPermission.pm
@@ -16,7 +16,7 @@ B_chgrp
16B_chgrp_link 16B_chgrp_link
17B_userdel 17B_userdel
18B_groupdel 18B_groupdel
19B_remove_user_from_group 19B:remove_user_from_group
20B_check_owner_group 20B_check_owner_group
21B_is_unowned_file 21B_is_unowned_file
22B_is_ungrouped_file 22B_is_ungrouped_file
@@ -28,7 +28,7 @@ B_is_suid
28B_is_sgid 28B_is_sgid
29B_get_user_list 29B_get_user_list
30B_get_group_list 30B_get_group_list
31B_remove_suid 31B:remove_suid
32); 32);
33our @EXPORT = @EXPORT_OK; 33our @EXPORT = @EXPORT_OK;
34 34
@@ -74,7 +74,7 @@ sub B_chmod($$) {
74 if ($new_perm =~ /([ugo]+)([+-]{1})([rwxst]+)/) { 74 if ($new_perm =~ /([ugo]+)([+-]{1})([rwxst]+)/) {
75 $symbolic = 1; 75 $symbolic = 1;
76 $chmod_noun = $1; 76 $chmod_noun = $1;
77 $add_remove = $2; 77 $add:remove = $2;
78 $capability = $3; 78 $capability = $3;
79 } 79 }
80 80
@@ -466,7 +466,7 @@ sub B_chgrp_link($$) {
466# 466#
467# In the future, we may also choose to make a B_lock_account routine. 467# In the future, we may also choose to make a B_lock_account routine.
468# 468#
469# This routine depends on B_remove_user_from_group. 469# This routine depends on B:remove_user_from_group.
470########################################################################### 470###########################################################################
471 471
472sub B_userdel($) { 472sub B_userdel($) {
@@ -506,7 +506,7 @@ sub B_userdel($) {
506 506
507 # 507 #
508 # Next find out what groups the user is in, so we can call 508 # Next find out what groups the user is in, so we can call
509 # B_remove_user_from_group($user,$group) 509 # B:remove_user_from_group($user,$group)
510 # 510 #
511 # TODO: add this to the helper functions for the test suite. 511 # TODO: add this to the helper functions for the test suite.
512 # 512 #
@@ -586,7 +586,7 @@ sub B_groupdel($) {
586 586
587 587
588########################################################################### 588###########################################################################
589# B_remove_user_from_group($user,$group) removes $user from $group, 589# B:remove_user_from_group($user,$group) removes $user from $group,
590# by modifying $group's /etc/group line, pulling the user out. This 590# by modifying $group's /etc/group line, pulling the user out. This
591# uses B_chunk_replace thrice to replace these patterns: 591# uses B_chunk_replace thrice to replace these patterns:
592# 592#
@@ -595,7 +595,7 @@ sub B_groupdel($) {
595# 595#
596########################################################################### 596###########################################################################
597 597
598sub B_remove_user_from_group($$) { 598sub B:remove_user_from_group($$) {
599 599
600 my ($user_to_remove,$group) = @_; 600 my ($user_to_remove,$group) = @_;
601 601
@@ -1022,7 +1022,7 @@ sub B_get_group_list()
1022# 1022#
1023########################################################################### 1023###########################################################################
1024 1024
1025sub B_remove_suid($) { 1025sub B:remove_suid($) {
1026 my $file_expr = $_[0]; 1026 my $file_expr = $_[0];
1027 1027
1028 &B_log("ACTION","Removing SUID bit from \"$file_expr\"."); 1028 &B_log("ACTION","Removing SUID bit from \"$file_expr\".");
diff --git a/recipes-security/bastille/files/FileContent.pm b/recipes-security/bastille/files/FileContent.pm
index 0a5d609..1ef89dd 100644
--- a/recipes-security/bastille/files/FileContent.pm
+++ b/recipes-security/bastille/files/FileContent.pm
@@ -10,8 +10,8 @@ B_blank_file
10B_insert_line_after 10B_insert_line_after
11B_insert_line_before 11B_insert_line_before
12B_insert_line 12B_insert_line
13B_append_line 13B:append_line
14B_prepend_line 14B:prepend_line
15B_replace_line 15B_replace_line
16B_replace_lines 16B_replace_lines
17B_replace_pattern 17B_replace_pattern
@@ -262,7 +262,7 @@ sub B_insert_line($$$$) {
262# 262#
263# Additionally, if $pattern is set equal to "", the line is always appended. 263# Additionally, if $pattern is set equal to "", the line is always appended.
264# 264#
265# B_append_line uses B_open_plus and B_close_plus, so that the file 265# B:append_line uses B_open_plus and B_close_plus, so that the file
266# modified is backed up... 266# modified is backed up...
267# 267#
268# Here's examples of where you might use this: 268# Here's examples of where you might use this:
@@ -273,7 +273,7 @@ sub B_insert_line($$$$) {
273# 273#
274########################################################################### 274###########################################################################
275 275
276sub B_append_line($$$) { 276sub B:append_line($$$) {
277 277
278 my ($filename,$pattern,$line_to_append) = @_; 278 my ($filename,$pattern,$line_to_append) = @_;
279 279
@@ -308,11 +308,11 @@ sub B_append_line($$$) {
308 308
309########################################################################### 309###########################################################################
310# &B_prepend_line ($filename,$pattern,$line_to_prepend) modifies $filename, 310# &B_prepend_line ($filename,$pattern,$line_to_prepend) modifies $filename,
311# pre-pending $line_to_prepend unless one or more lines in the file matches 311# pre-pending $line_to:prepend unless one or more lines in the file matches
312# $pattern. This is an enhancement to the prepend_line_if_no_such_line_exists 312# $pattern. This is an enhancement to the prepend_line_if_no_such_line_exists
313# idea. 313# idea.
314# 314#
315# B_prepend_line uses B_open_plus and B_close_plus, so that the file 315# B:prepend_line uses B_open_plus and B_close_plus, so that the file
316# modified is backed up... 316# modified is backed up...
317# 317#
318# Here's examples of where you might use this: 318# Here's examples of where you might use this:
@@ -322,7 +322,7 @@ sub B_append_line($$$) {
322# 322#
323########################################################################### 323###########################################################################
324 324
325sub B_prepend_line($$$) { 325sub B:prepend_line($$$) {
326 326
327 my ($filename,$pattern,$line_to_prepend) = @_; 327 my ($filename,$pattern,$line_to_prepend) = @_;
328 328
@@ -348,7 +348,7 @@ sub B_prepend_line($$$) {
348 348
349 # Log the action 349 # Log the action
350 &B_log("ACTION","Pre-pended the following line to $filename:\n"); 350 &B_log("ACTION","Pre-pended the following line to $filename:\n");
351 &B_log("ACTION","$line_to_prepend"); 351 &B_log("ACTION","$line_to:prepend");
352 } 352 }
353 else { 353 else {
354 $retval=0; 354 $retval=0;