diff options
| author | Armin Kuster <akuster808@gmail.com> | 2021-07-29 16:31:12 -0700 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2021-08-01 08:47:08 -0700 |
| commit | 11a67b861af74d59ccfd609d6d943e966ccff731 (patch) | |
| tree | ce619cf42798050439a4c04ed471ed293f17ede4 /recipes-security/bastille | |
| parent | d3a484abf81fc196389480df89cf5c82d13e6381 (diff) | |
| download | meta-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.bb | 6 | ||||
| -rw-r--r-- | recipes-security/bastille/files/AccountPermission.pm | 16 | ||||
| -rw-r--r-- | recipes-security/bastille/files/FileContent.pm | 16 |
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" | |||
| 6 | LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b" | 6 | LIC_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 |
| 8 | DEPENDS = "virtual/kernel" | 8 | DEPENDS = "virtual/kernel" |
| 9 | RDEPENDS_${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" | 9 | RDEPENDS:${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" |
| 10 | FILES_${PN} += "/run/lock/subsys/bastille" | 10 | FILES:${PN} += "/run/lock/subsys/bastille" |
| 11 | 11 | ||
| 12 | SRC_URI = "http://sourceforge.net/projects/bastille-linux/files/bastille-linux/3.2.1/Bastille-3.2.1.tar.bz2 \ | 12 | SRC_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 | ||
| 153 | FILES_${PN} += "${datadir}/Bastille ${libdir}/Bastille ${libdir}/perl* ${sysconfdir}/*" | 153 | FILES:${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 | |||
| 16 | B_chgrp_link | 16 | B_chgrp_link |
| 17 | B_userdel | 17 | B_userdel |
| 18 | B_groupdel | 18 | B_groupdel |
| 19 | B_remove_user_from_group | 19 | B:remove_user_from_group |
| 20 | B_check_owner_group | 20 | B_check_owner_group |
| 21 | B_is_unowned_file | 21 | B_is_unowned_file |
| 22 | B_is_ungrouped_file | 22 | B_is_ungrouped_file |
| @@ -28,7 +28,7 @@ B_is_suid | |||
| 28 | B_is_sgid | 28 | B_is_sgid |
| 29 | B_get_user_list | 29 | B_get_user_list |
| 30 | B_get_group_list | 30 | B_get_group_list |
| 31 | B_remove_suid | 31 | B:remove_suid |
| 32 | ); | 32 | ); |
| 33 | our @EXPORT = @EXPORT_OK; | 33 | our @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 | ||
| 472 | sub B_userdel($) { | 472 | sub 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 | ||
| 598 | sub B_remove_user_from_group($$) { | 598 | sub 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 | ||
| 1025 | sub B_remove_suid($) { | 1025 | sub 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 | |||
| 10 | B_insert_line_after | 10 | B_insert_line_after |
| 11 | B_insert_line_before | 11 | B_insert_line_before |
| 12 | B_insert_line | 12 | B_insert_line |
| 13 | B_append_line | 13 | B:append_line |
| 14 | B_prepend_line | 14 | B:prepend_line |
| 15 | B_replace_line | 15 | B_replace_line |
| 16 | B_replace_lines | 16 | B_replace_lines |
| 17 | B_replace_pattern | 17 | B_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 | ||
| 276 | sub B_append_line($$$) { | 276 | sub 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 | ||
| 325 | sub B_prepend_line($$$) { | 325 | sub 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; |
