Commit Graph

18 Commits

Author SHA1 Message Date
Jake Guffey ba576b3931 Don't symlink multiple times
Was checking for existence of $jaildir/home -- never exists; will always create new symlink
Changed to look for directory or symlink at $jaildir/base/home and respond accordingly
2012-06-21 11:59:53 -04:00
Jake Guffey d0b96e22d4 Fix typo
symlink was backwards
2012-06-14 14:40:40 -04:00
Jake Guffey c8fa79d053 Parameter change
Modified jailbase parameter such that it's only required when $state=present
2012-06-14 14:33:21 -04:00
Jake Guffey 055b3f0f53 bugfix
was filling jail_list with $jail_enable
2012-06-14 10:41:04 -04:00
Jake Guffey 4b11a6172d Fixed variable naming in /etc/fstab.$name
had referenced $jailbase when meaning to reference $jaildir
2012-04-30 17:29:08 -04:00
Jake Guffey 14e851341a Implemented Nico's suggestions
Parameterized {jailbase,jaildir}
Replaced all usages of /usr/jail with $jaildir
Explicitly fail if $os isn't FreeBSD
Removed $__type/files/ as it is pointless to have now
Updated man page
2012-04-27 11:45:34 -04:00
Jake Guffey 131889b454 Added jail_${name}_flags variable
To make future work, such as resource limiting (rctl(8)) easier, added
"-n ${name}" to jail_flags for each jail.
2012-04-23 14:39:26 -04:00
Jake Guffey d39821782d Copy /root to $jailbase/rw/$name/root
Copies /root to ${jailbase}/rw/${name}/root
Adds /root to /etc/fstab.${name}
2012-04-23 13:43:27 -04:00
Jake Guffey 847fc9d8c1 Multiple bugfixes
fixed remote copy command
fixed problem with code-remote when jail_enable wasn't in rc.conf
fixed problem with code-remote when jail_list wasn't in rc.conf
added check to see if /etc/devfs.rules exists before trying to use it
added dependency on __directory/usr/jail
2012-04-11 14:53:28 -04:00
Jake Guffey f5437ccce6 Bugfix for jail_list
If jail_list wasn't already defined in /etc/rc.conf, gencode-remote wasn't adding the variable to the file.
2012-04-06 13:32:59 -04:00
Jake Guffey 46b916c0e1 Various bugfixes
Added logic to ensure that /etc/resolv.conf exists within a jail
Replaced /var/db, /var/tmp mountpoints with /var mountpoint in jail
Added logic to ensure that every jail is bound to an interface
Modified how information is inserted into the jail's rc.conf
Added ListenAddress directive for SSHd
Updated manpage to reflect these changes
2012-02-28 16:39:08 -05:00
Jake Guffey 20a3538e72 Fixed echoing entries
Entries weren't being properly echoed into /usr/jail/rw/${name}/etc/rc.conf
2012-02-28 11:21:23 -05:00
Jake Guffey 0515fd8483 Various bugfixes.
Needed to use '|| true' on subshell variable assignments in case of empty return
Added default status (started=true or false)
Added default devfs rules
Replaced <<- HEREDOC usage with <<
Added escapes where necessary within quoted strings or HEREDOCs
2012-02-23 17:17:30 -05:00
Jake Guffey 446f497c4c Created deleteJail function. Ready to begin debugging. 2012-02-22 12:13:20 -05:00
Jake Guffey 18c0e947aa Created initial createJail function. Script still can't delete jails yet. 2012-02-21 18:34:21 -05:00
Jake Guffey b9c757b78a Filled out man page, created gencode-local to copy jailbase to __target_host, filled out parameter list, made explorers useful, created basic layout within gencode-remote. 2012-02-21 15:59:19 -05:00
Jake Guffey d082815c81 Created explorers, man page, jailbase placeholder. Began initial development of gencode-remote. 2012-02-19 14:09:36 -05:00
Jake Guffey d5b015b268 Initial commit. Placeholder files. 2012-02-17 14:13:55 -05:00