Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
Da Rock wrote: [dd] Doesn't the rc.d script run as root initially and then a method (default flags, etc) is used to change the owner to a nobody (restricted privilege user)? Just my 2c, but please correct me if I'm wrong. That is probably correct, rc.subr does su -m $user, but the login

Re: rc.d and environment variables

2010-12-24 Thread Da Rock
On 12/24/10 18:03, Victor Sudakov wrote: Da Rock wrote: [dd] Doesn't the rc.d script run as root initially and then a method (default flags, etc) is used to change the owner to a nobody (restricted privilege user)? Just my 2c, but please correct me if I'm wrong. That is probably

Re: rc.d and environment variables

2010-12-24 Thread RW
On Fri, 24 Dec 2010 09:34:27 +0600 Victor Sudakov v...@mpeks.tomsk.su wrote: Lowell Gilbert wrote: I'm not sure this will work. The initial question was about how to obtain an environmental variable. If the rc.d script of svnserve sources /etc/rc.conf and/or /etc/rc.conf.local, it

Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
RW wrote: I'm not sure this will work. The initial question was about how to obtain an environmental variable. If the rc.d script of svnserve sources /etc/rc.conf and/or /etc/rc.conf.local, it is okay, They do. rc.d scripts all start by sucking in rc.subr, which in

Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
Da Rock wrote: Doesn't the rc.d script run as root initially and then a method (default flags, etc) is used to change the owner to a nobody (restricted privilege user)? Just my 2c, but please correct me if I'm wrong. That is probably correct, rc.subr does su -m $user, but the

Inappropriate ioctl for device

2010-12-24 Thread Mohammad Hedayati
I'm writing a simple char device. So far everything went so good (read/write), but here I'm going to add support for ioctl. int ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *td) { int error = 0; uprintf(Here...\n); return(error); } and I'm calling

Re: rc.d and environment variables

2010-12-24 Thread Da Rock
On 12/24/10 19:37, Victor Sudakov wrote: Da Rock wrote: Doesn't the rc.d script run as root initially and then a method (default flags, etc) is used to change the owner to a nobody (restricted privilege user)? Just my 2c, but please correct me if I'm wrong. That is

Re: rc.d and environment variables

2010-12-24 Thread RW
On Fri, 24 Dec 2010 15:29:01 +0600 Victor Sudakov v...@mpeks.tomsk.su wrote: RW wrote: I'm not sure this will work. The initial question was about how to obtain an environmental variable. If the rc.d script of svnserve sources /etc/rc.conf and/or /etc/rc.conf.local, it

Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
Da Rock wrote: [dd] I really don't know what the security implications will be if /etc/krb5.keytab is readable by anyone besides the root user? Do you have a clue about it? There are other services' keys stored there besides svn (host/*, cvs/* etc). At the risk of getting laughed off

Re: Inappropriate ioctl for device

2010-12-24 Thread C. P. Ghost
On Fri, Dec 24, 2010 at 11:21 AM, Mohammad Hedayati hedayati...@gmail.com wrote: I'm writing a simple char device. So far everything went so good (read/write), but here I'm going to add support for ioctl. int ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *td) {

Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
RW wrote: I'm not sure this will work. The initial question was about how to obtain an environmental variable. If the rc.d script of svnserve sources /etc/rc.conf and/or /etc/rc.conf.local, it is okay, They do. rc.d scripts all start by sucking in rc.subr, which

Re: Inappropriate ioctl for device

2010-12-24 Thread Mohammad Hedayati
On Fri, Dec 24, 2010 at 6:00 PM, C. P. Ghost cpgh...@cordula.ws wrote: On Fri, Dec 24, 2010 at 11:21 AM, Mohammad Hedayati hedayati...@gmail.com wrote: I'm writing a simple char device. So far everything went so good (read/write), but here I'm going to add support for ioctl. int

Re: fetching mail (but not fetchmail)

2010-12-24 Thread Jonathan Chen
On Thu, Dec 23, 2010 at 10:27:32PM -0500, Chris Brennan wrote: Bit of an odd question. But I will try. Is it possible to set up some mechanism (in freebsd or maybe gentoo (doesn't matter to me)) to pop/imap into my mail location and download everything as storage and then I imap to my local

cpio misunderstanding?

2010-12-24 Thread Joe Kraft
Let me state a couple of given's up front: 1) I would post this on a FreeSBIE list if I could find one. 2) I think the issue I have right now is not understanding completely the limitations of cpio. My problem is that when building the file system to use for making the iso cpio fails when

Re: cpio misunderstanding?

2010-12-24 Thread Pegasus Mc Cleaft
If I try to run it manually on one of the files that fails, I get this: slug# echo /usr/local/freesbie-fs/libexec/ld-elf.so.1 | cpio -dump -l -v /usr/local/freesbie-clone /usr/local/freesbie-clone/usr/local/freesbie-fs/libexec/ld-elf.so.1 cpio: Can't create

Re: cpio misunderstanding?

2010-12-24 Thread Joe Kraft
Pegasus Mc Cleaft wrote: If I try to run it manually on one of the files that fails, I get this: slug# echo /usr/local/freesbie-fs/libexec/ld-elf.so.1 | cpio -dump -l -v /usr/local/freesbie-clone /usr/local/freesbie-clone/usr/local/freesbie-fs/libexec/ld-elf.so.1 cpio: Can't create

Re: cpio misunderstanding?

2010-12-24 Thread Polytropon
On Fri, 24 Dec 2010 19:57:41 -0500, Joe Kraft jvk-l...@thekrafts.org wrote: I don't quite get why this works this way though. I understand the immutable flag will keep the file itself from being changed, deleted or moved. But I don't see in any documentation that the immutable flag will