Re: [go-nuts] How to hide command line argument from ps

2016-06-23 Thread Sean Russell
> On Jun 23, 2016, at 8:00 AM, Nick Craig-Wood wrote: > > Environment variables are quite insecure too. On linux you can read any > processes environment variables using /proc/PID/environ, eg Env variables are more secure than ps, which is what your question asked. Maybe a linux forum would

Re: [go-nuts] How to hide command line argument from ps

2016-06-23 Thread Nick Craig-Wood
On 22/06/16 14:32, Sean Russell wrote: > On Tuesday, June 21, 2016 at 9:56:21 PM UTC-4, Lazytiger wrote: >> Thanks for all the replies. I agree that there is a better way to do the >> security jobs. I ask this question just for curiosity, to find out if there >> is a equivalence way to do this in

Re: [go-nuts] How to hide command line argument from ps

2016-06-22 Thread Sean Russell
On Tuesday, June 21, 2016 at 9:56:21 PM UTC-4, Lazytiger wrote: > Thanks for all the replies. I agree that there is a better way to do the > security jobs. I ask this question just for curiosity, to find out if there > is a equivalence way to do this in golang. From all the replies I assume > th

Re: [go-nuts] How to hide command line argument from ps

2016-06-22 Thread Manlio Perillo
It is possible to change the command line arguments, but how you do it is simply platform specific. You can look at how Nginx or PostgreSQL do it, just to name a few programs that need to change the command line to help user identity the role of each child process. Manlio Il giorno mercoledì 2

Re: [go-nuts] How to hide command line argument from ps

2016-06-21 Thread Hoping White
Thanks for all the replies. I agree that there is a better way to do the security jobs. I ask this question just for curiosity, to find out if there is a equivalence way to do this in golang. From all the replies I assume there is a no. > 在 2016年6月21日,下午10:39,Matt Harden 写道: > > It's generall

Re: [go-nuts] How to hide command line argument from ps

2016-06-21 Thread Matt Harden
It's generally a bad idea to try to improve security by hiding args. Much better to pass the argument another way, for instance via an open file descriptor that the program reads the value from. On Tue, Jun 21, 2016, 07:16 Hoping White wrote: > Hi, all > >I wonder is there a way to hide comm

Re: [go-nuts] How to hide command line argument from ps

2016-06-21 Thread Konstantin Khomoutov
On Tue, 21 Jun 2016 22:16:38 +0800 Hoping White wrote: > I wonder is there a way to hide command line arguments from > programs like “ps”? I can rewrite argv parameter for main in c > language, or use LD_PRELOAD to intercept libc_start_main, but all > these methods do not be functional in go. Tha

[go-nuts] How to hide command line argument from ps

2016-06-21 Thread Hoping White
Hi, all I wonder is there a way to hide command line arguments from programs like “ps”? I can rewrite argv parameter for main in c language, or use LD_PRELOAD to intercept libc_start_main, but all these methods do not be functional in go. Thanks. -- You received this message because you a