Fixes #7 : Add drop privileges function#180
Conversation
|
What is your opinion on the discussion in this PR? #175 |
|
I didn't consider the shutdown process. On reading more about it, the only work around I could find is to have another process -- A helper process -- which runs with root privileges and handles the flushing of IP Tables. |
|
I am able to successfully drop privileges during the routine operation of the honeypot while maintaining the root access for IPTables Management. I was able to shutdown without any error. This adds complexity as the initial process has to be forked but does the required work. |
|
Please rebase the PR |
|
Are you sure the iptables rules are dropped? |
|
This doesn't work, the go routines don't retain the privilege once the process drops it. |
|
Let's close this PR. I don't think we will benefit much if we can't fully drop the privileges. |

Drops the root privileges once Glutton has set up IPTables.

Glutton now has privileges of the nobody user.