Re: cpio misunderstanding?

2010-12-24 Thread Polytropon
On Fri, 24 Dec 2010 19:57:41 -0500, Joe Kraft 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 > not allow a file to

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:

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 '/usr/local/freesbie

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 copyin

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

Re: Inappropriate ioctl for device

2010-12-24 Thread Mohammad Hedayati
On Fri, Dec 24, 2010 at 6:00 PM, C. P. Ghost wrote: > On Fri, Dec 24, 2010 at 11:21 AM, Mohammad Hedayati > 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 cm

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 s

Re: Inappropriate ioctl for device

2010-12-24 Thread C. P. Ghost
On Fri, Dec 24, 2010 at 11:21 AM, Mohammad Hedayati 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) > { >      int err

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

Re: rc.d and environment variables

2010-12-24 Thread RW
On Fri, 24 Dec 2010 15:29:01 +0600 Victor Sudakov 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, > > > > >

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 prob

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 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

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 i

Re: rc.d and environment variables

2010-12-24 Thread RW
On Fri, 24 Dec 2010 09:34:27 +0600 Victor Sudakov 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 is o

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 co

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 log