git: 14e46a2982 - main - [hb][jails] Fix jail configuration example

Fernando Apesteguía <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/doc/commit/?id=14e46a298293401597c2784588ece39660b2fd24

commit 14e46a298293401597c2784588ece39660b2fd24
Author:     Fernando Apesteguía <[email protected]>
AuthorDate: 2022-06-28 16:10:14 +0000
Commit:     Fernando Apesteguía <[email protected]>
CommitDate: 2022-06-30 16:23:36 +0000

    [hb][jails] Fix jail configuration example
    
    jail.conf(8) accepts a devfs_ruleset that should be specified as a number
    according to jail(8).
    
    With the example in the handbook, we get this error when trying to launch the
    jail:
    
    Starting jails: cannot start jail  "www":
    jail: www: devfs_ruleset: non-integer value "www_ruleset"
    
    Remove that from the handbook and left the default value of 4, meaning
    devfs_ruleset is enforced. No need to go into explaining devfs(8) at this point.
    
    Reviewed by:    [email protected]
    Approved by:    0mp@
    Differential Revision: https://reviews.freebsd.org/D35630
---
 documentation/content/en/books/handbook/jails/_index.adoc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/documentation/content/en/books/handbook/jails/_index.adoc b/documentation/content/en/books/handbook/jails/_index.adoc
index 36c177926a..522d0c83e5 100644
--- a/documentation/content/en/books/handbook/jails/_index.adoc
+++ b/documentation/content/en/books/handbook/jails/_index.adoc
@@ -227,7 +227,6 @@ www {
     host.hostname = www.example.org;           # Hostname
     ip4.addr = 192.168.0.10;                   # IP address of the jail
     path = "/usr/jail/www";                    # Path to the jail
-    devfs_ruleset = "www_ruleset";             # devfs ruleset
     mount.devfs;                               # Mount devfs inside the jail
     exec.start = "/bin/sh /etc/rc";            # Start command
     exec.stop = "/bin/sh /etc/rc.shutdown";    # Stop command
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.