FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 11-03-2010, 09:59 PM
Philip Manuel
 
Default kernel bug fixed in later kernels

Does anyone know if this is going to be fixed in CentOS ?



// test case code below


// expected behaviour is "all good" and a return code of zero.


// this works on 2.6.35-1


// does not work on 2.6.18-194.17.4.el5 from Centos 5.5




// think this bug was fixed in git commit
8948e11f450e6189a79e47d6051c3d5a0b98e3f3


// around 2.6.22


// http://www.mail-archive.com/git-commits-head@vger.kernel.org/msg11654.html






#include <fcntl.h>


#include <stdio.h>


#include <sys/stat.h>


#include <sys/types.h>


#include <unistd.h>




int main(int argc, char** argv)


{


** int fd = open("foo", O_RDONLY);


** ** if (setuid(1000))


** {


****** printf("could not setuid, run as root with correct uid
");


****** return 1;


** }




** char proc_name[1024];




** sprintf(proc_name, "/proc/self/fd/%d", fd);


** struct stat stat_buf;




** int rc = stat(proc_name, &stat_buf);




** if (rc == 0)


** {


****** printf("all good
");


** }


** else


** {


****** printf("busted, could not access %s
", proc_name);


** }




** return rc;


}


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-03-2010, 10:36 PM
Ned Slider
 
Default kernel bug fixed in later kernels

On 03/11/10 22:59, Philip Manuel wrote:
> Does anyone know if this is going to be fixed in CentOS ?
>

Only if it gets fixed in RHEL.

Did you file a bug? If so, where is it?

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-03-2010, 11:23 PM
Philip Manuel
 
Default kernel bug fixed in later kernels

On 11/04/2010 10:36 AM, Ned Slider wrote:
> On 03/11/10 22:59, Philip Manuel wrote:
>> Does anyone know if this is going to be fixed in CentOS ?
>>
> Only if it gets fixed in RHEL.
>
> Did you file a bug? If so, where is it?
>
No I'll file a bug now, was wondering if others had seen this issue

Phil.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 10:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org