fix logrotate buffer overflow
by Colin McCabe
This patch fixes a buffer overflow in logrotate. The diff was done
against trunk on http://svn.fedorahosted.org/svn/logrotate/
Sorry if this is the wrong place to post this. I didn't see a mailing
list mentioned on the project page at
https://fedorahosted.org/logrotate/
Index: config.c
===================================================================
--- config.c (revision 319)
+++ config.c (working copy)
@@ -759,7 +759,7 @@
if (key == NULL)
continue;
- rc = sscanf(key, "%s %s%c", createOwner,
+ rc = sscanf(key, "%200s
%200s%c", createOwner,
createGroup, &foo);
if (rc == 3) {
message(MESS_ERROR,
"%s:%d extra arguments for "
@@ -810,7 +810,7 @@
if (key == NULL)
continue;
- rc = sscanf(key, "%o %s %s%c",
&createMode,
+ rc = sscanf(key, "%o %200s
%200s%c", &createMode,
createOwner,
createGroup, &foo);
if (rc == 4) {
message(MESS_ERROR,
"%s:%d extra arguments for "
13 years, 2 months
CDROM to flash drive -
by Bob Goodwin
I bought a series of lectures and happily downloaded the first
two series. Several weeks later I found that they had changed
their system, installed a new "download manager" which rejects
my Linux access.
I protested and they sent me a set of disks, beautifully put up,
etc. My problem is that each series, there are four, is on 12
CD's, each of which has a dozen mp3 tracks on it. I need to put
all of them on a flash drive to play in my digital audio book
player.
I copied each of 12 disks into separate directories, 0/ through
11/, that works fine they will play on Audacious, but when I try
to copy them all into one directory which I named Flash/ using
the file manager it insists on sorting them and completely
destroys the order of things.
I see no option to simply append as I paste.
They have offered a refund, anxious to get rid of me no doubt.
But I would like to make the copies rather than just give up.
Perhaps someone can put me on the right track. I will provide
more details if required.
Bob
--
13 years, 2 months
avc for gpsd and ntpd use of shm
by Skunk Worx
Sup,
I am using EPEL 6 and a garmin 18 LVC on a serial port with gpsd. I am
fairly new to the selinux environment.
ntpd is supposed to be able to access a couple of shm locations to get
time from the gps daemon.
In /var/log/messages I see :
Mar 18 00:10:11 localhost ntpd[8899]: SHM shmget (unit 0): Permission denied
Mar 18 00:10:11 localhost ntpd[8899]: configuration of 127.127.28.0 failed
Mar 18 00:10:11 localhost ntpd[8899]: SHM shmget (unit 1): Permission denied
Mar 18 00:10:11 localhost ntpd[8899]: configuration of 127.127.28.1 failed
Also avc messages :
type=SYSCALL msg=audit(1300431471.964:16749): arch=40000003 syscall=117
success=no exit=-13 a0=17 a1=4e545031 a2=50 a3=3c0 items=0 ppid=1
pid=8795 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0
tty=(none) ses=12 comm="ntpd" exe="/usr/sbin/ntpd"
subj=unconfined_u:system_r:ntpd_t:s0 key=(null)
type=AVC msg=audit(1300432211.929:16768): avc: denied { unix_read
unix_write } for pid=8899 comm="ntpd" key=1314148400
scontext=unconfined_u:system_r:ntpd_t:s0
tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=shm
type=SYSCALL msg=audit(1300432211.929:16768): arch=40000003 syscall=117
success=no exit=-13 a0=17 a1=4e545030 a2=50 a3=3c0 items=0 ppid=1
pid=8899 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0
tty=(none) ses=12 comm="ntpd" exe="/usr/sbin/ntpd"
subj=unconfined_u:system_r:ntpd_t:s0 key=(null)
type=AVC msg=audit(1300432211.930:16769): avc: denied { unix_read
unix_write } for pid=8899 comm="ntpd" key=1314148401
scontext=unconfined_u:system_r:ntpd_t:s0
tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=shm
Here's some direction from audit2allow :
# grep ntpd /var/log/audit/audit.log | audit2allow
#============= ntpd_t ==============
allow ntpd_t unconfined_t:shm { unix_read unix_write };
Should I use audit2allow and create a policy package to fix this or is
there a better way?
Thanks,
John
13 years, 2 months
Hoping a VOD program to post videos
by 猫行天下
Hello, guys:
I was building a VOD website for the school
I studying in. I searched the Internet, but found there isn’t a PHP program to
do that… I found several VOD program, but those program just do a work to turn
media file to RTSP or MMS stream, I need a program works on Linux that can not
only streaming file, but also can publish these stream…. I mean, to publish these
streams with the movie’s name, Main Cast, introduction and so on.
I sought it for a couple of days, can you
help me? Thank you for your attention.
Your Sincerely
Cat.S
13 years, 2 months
Fedora on HP ProLiant DL140 G3 Dual Core Xeon 2.33Ghz SATA Server
by Aaron Gray
I am looking at buying a HP ProLiant DL140 G3 and am wondering what the
support on Fedora for this is like.
Does latest or still supported Fedora support this hardware ?
If so are there video drivers ?
I found some forum which says it has Matrox G200 video driver.
Many thanks in advance,
Aaron
13 years, 2 months
RE: [OT Humor] "Obviously designed by morons"
by J.Witvliet@mindef.nl
-----Original Message-----
From: users-bounces(a)lists.fedoraproject.org [mailto:users-bounces@lists.fedoraproject.org] On Behalf Of Fernando Cassia
Sent: Friday, March 18, 2011 1:01 PM
To: Community support for Fedora users
Subject: Re: [OT Humor] "Obviously designed by morons"
On Fri, Mar 18, 2011 at 8:46 AM, Tom Horsley <horsley1953(a)gmail.com> wrote:
>
> Just wait till everyone sees gnome 3 :-).
Oh, no, More Lemmings!
;)
FC
--
Oops, that show's your age
(Still one of the best games around then)
______________________________________________________________________
Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
13 years, 2 months
wifi does not work
by Adam Tong
Hi,
I don't have any icon of wireless in the bar of the desktop as some tutorials suggest.
I think that the wireless card is recognized by fedora but i don't know how to check that. Int the administration -> network -> devices i see wlan0 but it is not activable: when i press the button activate it just loops and never stops.
Info about my card:
WL-159g 802.11bg (USB2.0 WLAN)
manufacturer : ASUSTek Computer, Inc.
ASUS A9 Series (A9T)
In the manufacturer's website there is no driver for linux.
All suggestions are welcome.
13 years, 2 months
lp versus enscript
by Robert Moskowitz
I needed to print and Internet Draft 2 sided and two up. My colleague
suggested lpr, but that does not have enough options, but I figured out
how to use lp:
lp -d HP-Officejet-8500 -o sides=two-sided-short-edge -o number-up=2
RFC5201-bis.txt
But then he came back and said enscript is better and to use
enscript -2r -PHP-Officejet-8500 RFC5201-bis.txt
enscript does not come installed with F14; so I would have to install
it. I did a search for an online man page...
This does not seem to provide 2 sided. According to the man page it
looks like I need to add
-DDuplex:true
So in what way is enscript better than lp? What neato things do I gain
by using it?
13 years, 2 months
gnome-volume-control and connectors
by Mike Wright
Hi all,
Using f14-x86_64.
I reinstalled yesterday from the LiveCD and noticed that my *sound
preferences* are different (right-click the speaker icon to open
gnome-volume-control).
I have audio output but lost my microphone and line-input.
This is what it looked like before the reinstall.
Sound Preferences:
Hardware:
Internal Audio:
1 input
1 output
Analog Stereo Duplex
Input:
Input Volume: 100%
Input Level: "all blue"
Connector:
Microphone 1
Microphone 2
Line-In* (selected)
Device: Internal Audio Analog Stereo
Output:
Connector: Analog Output
Device: Internal Analog Stereo
I no longer have the lines referring to "Connector" on either Input or
Output.
Does anybody know how to restore them and their options?
TIA,
Mike Wright
13 years, 2 months
Re: FreeBSD Drive Support??
by James McKenzie
On Thu, Mar 17, 2011 at 1:41 AM, xinyou yan <yxy.716(a)gmail.com> wrote:
> I have a freebsd system.
> In my computer /dev/sda10 is a freebsd slice.
>
> I use mount -t ufs /dev/sda10 /tmp
> It fail.
>
> mount: wrong fs type, bad option, bad superblock on /dev/sda10,
> missing codepage or helper program, or other error
> In some cases useful info is found in syslog - try
> dmesg | tail or so
>
> How can i mount it?
Are you trying to mount this in Fedora?
You can try the suggestions JB gave, but FreeBSD might not be using
the Unix File System.
James McKenzie
13 years, 2 months