Fix docs
This commit is contained in:
parent
193355af71
commit
5e2b5ed26b
1 changed files with 4 additions and 4 deletions
|
@ -7,12 +7,12 @@ bsdcontrol.rb provides Ruby bindings for libhbsdcontrol from the
|
||||||
|
|
||||||
__Features__
|
__Features__
|
||||||
|
|
||||||
The first example obtains a list of hardenedbsd features that
|
The first example prints a list of hardenedbsd features that
|
||||||
can be enabled, disabled or restored to the system default:
|
can be enabled, disabled or restored to the system default:
|
||||||
|
|
||||||
``` ruby
|
``` ruby
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
# Required privileges: unprivileged user or superuser.
|
# Required privileges: user, superuser
|
||||||
require "bsdcontrol"
|
require "bsdcontrol"
|
||||||
BSD::Control
|
BSD::Control
|
||||||
.available_features
|
.available_features
|
||||||
|
@ -30,7 +30,7 @@ over the system default. The system default can be restored with
|
||||||
|
|
||||||
``` ruby
|
``` ruby
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
# Required privileges: superuser.
|
# Required privileges: superuser
|
||||||
require "bsdcontrol"
|
require "bsdcontrol"
|
||||||
BSD::Control
|
BSD::Control
|
||||||
.feature(:mprotect)
|
.feature(:mprotect)
|
||||||
|
@ -46,7 +46,7 @@ status:
|
||||||
|
|
||||||
``` ruby
|
``` ruby
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
# Required privileges: superuser.
|
# Required privileges: superuser
|
||||||
require "bsdcontrol"
|
require "bsdcontrol"
|
||||||
BSD::Control
|
BSD::Control
|
||||||
.feature(:mprotect)
|
.feature(:mprotect)
|
||||||
|
|
Loading…
Reference in a new issue