Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 188585 Details for
Bug 259045
net-print/gnome-cups-manager-0.33: buffer overflow when running (_FORTIFY_SOURCE)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
updated 020_all_check-lpadmin-member.patch
020_all_check-lpadmin-member.patch (text/plain), 906 bytes, created by
Sascha Hlusiak
on 2009-04-16 15:07:20 UTC
(
hide
)
Description:
updated 020_all_check-lpadmin-member.patch
Filename:
MIME Type:
Creator:
Sascha Hlusiak
Created:
2009-04-16 15:07:20 UTC
Size:
906 bytes
patch
obsolete
>Index: gnome-cups-manager-0.33/libgnomecups/gnome-cups-permission.c >=================================================================== >--- gnome-cups-manager-0.33.orig/libgnomecups/gnome-cups-permission.c >+++ gnome-cups-manager-0.33/libgnomecups/gnome-cups-permission.c >@@ -28,12 +28,30 @@ > #include <unistd.h> > #include <sys/types.h> > #include <string.h> >+#include <grp.h> > > static char *gnome_cups_app_path = NULL; > > gboolean > gnome_cups_can_admin () > { >+ gid_t groups[NGROUPS_MAX]; >+ int numgrp, i; >+ struct group *lpadm_grp; >+ >+ /* find group id of lpadmin */ >+ lpadm_grp = getgrnam( "lpadmin" ); >+ >+ if( lpadm_grp ) { >+ /* find out whether user is in group lpadmin */ >+ numgrp = getgroups( sizeof( groups ) / sizeof( gid_t ), groups ); >+ if( numgrp >= 0 ) >+ for( i = 0; i < numgrp; ++i ) { >+ if( groups[i] == lpadm_grp->gr_gid ) >+ return 1; >+ } >+ } >+ > return (geteuid () == 0); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 259045
: 188585