This file is indexed.

/usr/share/doc/makejail/examples/mysqld.py is in makejail 0.0.5-10.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
chroot="/var/chroot/mysqld"
testCommandsInsideJail=["safe_mysqld"]
sleepAfterStartCommand=5
processNames=["mysqld"]
testCommandsOutsideJail=["mysql --user=root --socket='/var/chroot/mysqld/var/run/mysqld/mysqld.sock' --exec='show tables' mysql"]
preserve=["/var/lib/mysql",
		  "/var/log/mysql"]
users=["mysql"]
groups=["mysql"]

# Steps:
# 
# Copy the directories in the "preserve" directive to the jail
# with exactly the same ownerships and permissions (cp -RpP)
# Run makejail
# To connect from local clients, keep in mind that the socket
# is now in the jail

# OpenBSD
# preserve=["/var/mysql"]
# testCommandsOutsideJail=["mysql --user=root --socket='/var/chroot/mysqld/var/run/mysql/mysql.sock' --exec='show tables' mysql"]