On Wed, Mar 6, 2013 at 7:11 PM, Brian Wood <[email protected]> wrote:

>
> Okay, that worked.  I didn't really understand what was
> in my /proc/sys/kernel/core_pattern previously.  I think
> it started with a vertical bar -- |.
>
> I didn't do the
> echo '1' > /proc/sys/fs/suid_dumpable
>
> yet, but may need it for the next steps.  I've just
> tested it with that little script and will work on
> this with my server next.
>
>
Well, haven't been able to get a core from my server.  I did
the echo '1' > ...  now and also added these lines

if (prctl(PR_SET_DUMPABLE,1, 0, 0,0) == -1) {
   syslog(...);
}

to my server  after calling setgid and setuid.

After echoing 1 to /proc/sys/fs/suid_dumpable, I stopped
my server with systemctl and then restarted it with systemctl.

/proc/sys/kernel/core_pattern is set to this:
core.%e.%s.%t

So I'm hoping to get the core in the current working
directory of the server, but don't seem to get it there or
anywhere else.  The server is able to write regular files
to that current working directory.  Any more ideas?

-- 
Brian Wood
Ebenezer Enterprises - we write code and we write code good.
http://webEbenezer.net
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to