From c94d705f4d5eb5987eea12922a01cd3b7d2b8c2f Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 1 Mar 2024 01:05:42 -0300 Subject: [PATCH] s/executable/path/g --- README.md | 4 ++-- lib/bsd/control/feature.rb | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 60d610a..a7c2db3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ hbsdctl.rb is a Ruby C extension that binds libhbsdcontrol from the [hardenedbsd](https://hardenedbsd.org) project. Through this library, you can query what features are available and if root, enable or disable -those features for a given executable. +those features for a given file. ## Examples @@ -25,7 +25,7 @@ end __Enable feature__ -As a superuser account, you can enable or disable features for a given executable. +As a superuser account, you can enable or disable features for a given file. The example enables the mprotect feature for the emacs binary: ``` ruby diff --git a/lib/bsd/control/feature.rb b/lib/bsd/control/feature.rb index 9cd1b33..50d7e75 100644 --- a/lib/bsd/control/feature.rb +++ b/lib/bsd/control/feature.rb @@ -11,10 +11,10 @@ module BSD::Control # @group Actions ## - # Enables a feature for a given executable. + # Enables a feature for a given file. # # @param [String] path - # The path to an executable. + # The path to a file. # # @raise [BSD::Control::Error] # When the operation fails. @@ -26,10 +26,10 @@ module BSD::Control end ## - # Disables a feature for a given executable. + # Disables a feature for a given file. # # @param [String] path - # The path to an executable. + # The path to a file. # # @raise [BSD::Control::Error] # When the operation fails. @@ -44,7 +44,7 @@ module BSD::Control # Restore system defaults. # # @param [String] path - # The path to an executable. + # The path to a file. # # @raise [BSD::Control::Error] # When the operation fails.