* [Qemu-devel] Qemu bug when building for OpenBSD
@ 2005-11-14 21:53 Dave Feustel
2005-11-14 22:05 ` Paul Brook
2005-11-15 10:41 ` [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run swz
0 siblings, 2 replies; 7+ messages in thread
From: Dave Feustel @ 2005-11-14 21:53 UTC (permalink / raw)
To: qemu-devel
When I try to build qemu 7.2 for OpenBSD, I get a file
not found error for libutil.h in vl.c. This should not
happen since there is no libutil.h in OpenBSD. Has
this been fixed yet? (or can someone point me to
a copy of libutil.h and its library source)?
Are these the files that libutil.h references?
/home/daf/Qemu/qemu-0.7.2}ls -l /usr/lib/libutil*
-r--r--r-- 1 root bin 40832 Aug 19 17:34 /usr/lib/libutil.a
-r--r--r-- 1 root bin 61231 Aug 19 17:34 /usr/lib/libutil.so.11.0
-r--r--r-- 1 root bin 43224 Aug 19 17:34 /usr/lib/libutil_p.a
-r--r--r-- 1 root bin 45680 Aug 19 17:34 /usr/lib/libutil_pic.a
Thanks,
Dave Feustel
--
Tired of having to defend against Malware?
You know: trojans, viruses, SPYWARE, ADWARE,
KEYLOGGERS, rootkits, worms and popups.
Then Switch to OpenBSD with a KDE desktop!!!
NOW with Virtual PC OS support via QEMU!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Qemu bug when building for OpenBSD
2005-11-14 21:53 [Qemu-devel] Qemu bug when building for OpenBSD Dave Feustel
@ 2005-11-14 22:05 ` Paul Brook
2005-11-14 23:13 ` Dave Feustel
2005-11-15 10:41 ` [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run swz
1 sibling, 1 reply; 7+ messages in thread
From: Paul Brook @ 2005-11-14 22:05 UTC (permalink / raw)
To: qemu-devel, dfeustel
On Monday 14 November 2005 21:53, Dave Feustel wrote:
> When I try to build qemu 7.2 for OpenBSD, I get a file
> not found error for libutil.h in vl.c. This should not
> happen since there is no libutil.h in OpenBSD. Has
> this been fixed yet? (or can someone point me to
> a copy of libutil.h and its library source)?
Have you tried not including it? Or including util.h instead?
google suggests it's usually used for openpty(), but that bit of code is
disabled on bsd anyway.
Paul
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Qemu bug when building for OpenBSD
2005-11-14 22:05 ` Paul Brook
@ 2005-11-14 23:13 ` Dave Feustel
2005-11-14 23:20 ` Paul Brook
0 siblings, 1 reply; 7+ messages in thread
From: Dave Feustel @ 2005-11-14 23:13 UTC (permalink / raw)
To: Paul Brook; +Cc: qemu-devel
On Monday 14 November 2005 17:05, Paul Brook wrote:
> On Monday 14 November 2005 21:53, Dave Feustel wrote:
> > When I try to build qemu 7.2 for OpenBSD, I get a file
> > not found error for libutil.h in vl.c. This should not
> > happen since there is no libutil.h in OpenBSD. Has
> > this been fixed yet? (or can someone point me to
> > a copy of libutil.h and its library source)?
>
> Have you tried not including it? Or including util.h instead?
> google suggests it's usually used for openpty(), but that bit of code is
> disabled on bsd anyway.
I tried commenting out the #include line and got by that problem.
I got another error relating to undefined symbol INT16_MAX.
Then I put all the qemu source into an svn repository to begin editing
it, but, upon checkout ran into a problem with links due to altered
source tree structure, about which I just posted.
Dave
> Paul
>
--
Tired of having to defend against Malware?
You know: trojans, viruses, SPYWARE, ADWARE,
KEYLOGGERS, rootkits, worms and popups.
Then Switch to OpenBSD with a KDE desktop!!!
NOW with Virtual PC OS support via QEMU!
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run
2005-11-14 21:53 [Qemu-devel] Qemu bug when building for OpenBSD Dave Feustel
2005-11-14 22:05 ` Paul Brook
@ 2005-11-15 10:41 ` swz
2005-11-15 14:31 ` hmm
1 sibling, 1 reply; 7+ messages in thread
From: swz @ 2005-11-15 10:41 UTC (permalink / raw)
To: qemu-devel
I put the next three line into /etc/qemu-ifup.
#!/bin/sh
echo $* >> /tmp/qemu-ifup.$$
sudo /sbin/ifconfig ${1##/*/} 0.0.0.0 promisc up
sudo /usr/sbin/brctl addif bridge ${1##/*/}
I think when the qemu run, it will make a file in /tmp,
but actually, when I use root the run qemu, it work ok, when I user a
user, the script isn't run. Why?
Is the same with the option "-n script", when I use root to run qemu,
the script I assign will run, but in a normal user, it won't work.
Thank you!
Best Regard
Zheng SW
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run
2005-11-15 10:41 ` [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run swz
@ 2005-11-15 14:31 ` hmm
2005-11-16 3:02 ` swz
0 siblings, 1 reply; 7+ messages in thread
From: hmm @ 2005-11-15 14:31 UTC (permalink / raw)
To: qemu-devel
hi
> I put the next three line into /etc/qemu-ifup.
> #!/bin/sh
> echo $* >> /tmp/qemu-ifup.$$
> sudo /sbin/ifconfig ${1##/*/} 0.0.0.0 promisc up
> sudo /usr/sbin/brctl addif bridge ${1##/*/}
>
> I think when the qemu run, it will make a file in /tmp,
> but actually, when I use root the run qemu, it work ok, when I user a
> user, the script isn't run. Why?
>
> Is the same with the option "-n script", when I use root to run qemu,
> the script I assign will run, but in a normal user, it won't work.
>
as you did not mention /etc/sudoers i suspect you did not configure
your sudoers(5) file. read the manpage for full information. /etc/sudoers
defines which users can user predefined command/argument strings.
btw: for syntax checking after editing this file you should use visudo(8)
to edit this file.
greetings
virtual
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run
2005-11-15 14:31 ` hmm
@ 2005-11-16 3:02 ` swz
0 siblings, 0 replies; 7+ messages in thread
From: swz @ 2005-11-16 3:02 UTC (permalink / raw)
To: qemu-devel
On 二, 2005-11-15 at 15:31 +0100, hmm wrote:
> hi
>
> > I put the next three line into /etc/qemu-ifup.
> > #!/bin/sh
> > echo $* >> /tmp/qemu-ifup.$$
> > sudo /sbin/ifconfig ${1##/*/} 0.0.0.0 promisc up
> > sudo /usr/sbin/brctl addif bridge ${1##/*/}
>
> as you did not mention /etc/sudoers i suspect you did not configure
> your sudoers(5) file.
I have configure my /etc/sudoers, like that:
Cmnd_Alias QEMU=/sbin/ifconfig,/usr/sbin/brctl
admin ALL=(ALL) ALL
admin ALL=NOPASSWD:QEMU
So if someone run qemu, it will use sodu to run ifconfig and brctl.
my question is: when I configure no mattler like above or as bellow:
#!/bin/sh
echo $* >> /tmp/qemu-ifup.$$
/sbin/ifconfig ${1##/*/} 0.0.0.0 promisc up
/usr/sbin/brctl addif bridge ${1##/*/}
the script will run when use root. But when not use root or sudo, the
script won't run. I don't know why. ( the script:
"echo $* >> /tmp/qemu-ifup.$$" can tell me whether the script was run)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-11-16 3:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 21:53 [Qemu-devel] Qemu bug when building for OpenBSD Dave Feustel
2005-11-14 22:05 ` Paul Brook
2005-11-14 23:13 ` Dave Feustel
2005-11-14 23:20 ` Paul Brook
2005-11-15 10:41 ` [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run swz
2005-11-15 14:31 ` hmm
2005-11-16 3:02 ` swz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).