> And get_mail must have elevated privileges to search for the users mail... > or sendmail must have already switched user on reciept to put it in the > users inbox which also requires privleges... No. Think instead of blindly following existing implementation socket(AF_UNIX, SOCK_STREAM, 0); connect("/var/run/mailservice"); write("GIMMEMYMAIL\n"); read("200 CATCH.."); read(all my mail) The daemon needs no priviledge. The client needs no priviledge. The PEERCRED authentication on AF_UNIX sockets does the work. I can even pass you back the file handle of the mailbox if I was using an old style non database indexed mail spool. > It's much more efficent to process each mail as it arrives. You are doing a lot more exec() calls that way. If you get enough mail to make spool space an issue you want a daemon. Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: [OFFTOPIC] Re: [PATCH] Single use... Alan Cox
- Re: [OFFTOPIC] Re: [PATCH] Single use... Alexander Viro
- Re: [OFFTOPIC] Re: [PATCH] Single use... Alan Cox
- Re: [OFFTOPIC] Re: [PATCH] Single use... Alexander Viro
- Re: [OFFTOPIC] Re: [PATCH] Single use... CaT
- Re: [OFFTOPIC] Re: [PATCH] Single use... Alan Cox
- Re: [OFFTOPIC] Re: [PATCH] Single use... CaT
- Re: [OFFTOPIC] Re: [PATCH] Single use... Alan Cox
- Re: [OFFTOPIC] Re: [PATCH] Single use... Alex Riesen
- Re: [OFFTOPIC] Re: [PATCH] Single use... Jesse Pollard
- Re: [OFFTOPIC] Re: [PATCH] Single use... Alan Cox
- Re: [OFFTOPIC] Re: [PATCH] Single use... Markus Schaber
- Re: [OFFTOPIC] Re: [PATCH] Single use... Gábor Lénárt
- Re: [OFFTOPIC] Re: [PATCH] Single use... Pjotr Kourzanoff
- Re: [OFFTOPIC] Re: [PATCH] Single use... Gábor Lénárt
- Re: [OFFTOPIC] Re: [PATCH] Single use... CaT
- Re: [OFFTOPIC] Re: [PATCH] Single use... Pjotr Kourzanoff
- Re: [OFFTOPIC] Re: [PATCH] Single use... Gerhard Mack
- Re: [OFFTOPIC] Re: [PATCH] Single use... Alan Cox
- Re: [OFFTOPIC] Re: [PATCH] Single user linux Alexander Viro
- Re: [OFFTOPIC] Re: [PATCH] Single user li... Tomas Telensky