c559
![]() |
|
|
|
|
|||||||
| FreeBSD Development Kernel development, writing drivers, coding, and questions regarding FreeBSD internals. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I created a patch for /etc/rc.d/jail that allows paramaters to be set for a jail in rc.conf in the format
Code:
jail_example_params="children.max=99 allow.raw_sockets Last edited by DutchDaemon; May 11th, 2011 at 16:49. |
|
#2
|
||||
|
||||
|
Allow.raw_sockets can't be set per jail and is already covered by jail_socket_unixiproute_only. Besides that there's also already a jail_*_flags.
What parameters are you trying to set?
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
As far as I know none of the above paramaters are able to be set through the use of jail_*_flags. And I would say that this is quite limiting. And even for the couple of jail paramaters that can be set from rc.conf removing their associated lines from /etc/rc.d/jail and passing them through jail_example_params would increase the efficiency of /etc/rc.d/jail by decreasing its size and amount of cpu usage. This may not be a significant amount but I think the increase in funtionality while staying true to the rc system and increasing its efficiency is a no-brainer. Last edited by DutchDaemon; May 11th, 2011 at 16:50. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#4
|
|||
|
|||
|
The proposed patch is on my blog
http://mhunet.wordpress.com/ Last edited by mhunet; May 11th, 2011 at 20:16. Reason: moved url |
| The Following User Says Thank You to mhunet For This Useful Post: | ||
VK (June 20th, 2011) | ||
|
#5
|
|||
|
|||
|
You can submit patches using send-pr. I know the page talks mainly about bugs but new features can be submitted that way as well. Your report will then go in the list of PRs and hopefully come to the attention of a committer. Make sure you read the guidelines about filling out the PR form to give a smoother ride!
HTH, Andrew |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] system allowing su to root from non-wheel | chavez243ca | General | 6 | November 12th, 2010 15:19 |
| Difference in Single Unix Specification, POSIX and X/Open | zubairahmed_cae | Off-Topic | 7 | April 30th, 2010 23:29 |
| "Manual root fs specification" error on boot, then crashes | halfer | Installing & Upgrading | 3 | April 2nd, 2010 10:36 |
| Allowing non-root to use bootloadHID | caesius | General | 0 | September 16th, 2009 11:54 |
| [Solved] Allowing users to shutdown | fonz | General | 2 | March 6th, 2009 00:58 |