Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 290968 Details for
Bug 427786
rpcbind fails to read warmstart file
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Check warmstart fil against correct user ID
rpcbind-0.1.4-warmstart_perm.patch (text/plain), 1.10 KB, created by
Anders Blomdell
on 2008-01-07 15:58:33 UTC
(
hide
)
Description:
Check warmstart fil against correct user ID
Filename:
MIME Type:
Creator:
Anders Blomdell
Created:
2008-01-07 15:58:33 UTC
Size:
1.10 KB
patch
obsolete
>diff -ur orig/src/rpcbind.c rpcbind-0.1.4/src/rpcbind.c >--- orig/src/rpcbind.c 2008-01-07 16:51:38.000000000 +0100 >+++ rpcbind-0.1.4/src/rpcbind.c 2008-01-07 16:42:41.000000000 +0100 >@@ -193,11 +193,6 @@ > (void) signal(SIGHUP, SIG_IGN); > (void) signal(SIGUSR1, SIG_IGN); > (void) signal(SIGUSR2, SIG_IGN); >-#ifdef WARMSTART >- if (warmstart) { >- read_warmstart(); >- } >-#endif > if (debugging) { > #ifdef RPCBIND_DEBUG > printf("rpcbind debugging enabled."); >@@ -226,6 +221,11 @@ > } > } > >+#ifdef WARMSTART >+ if (warmstart) { >+ read_warmstart(); >+ } >+#endif > network_init(); > > my_svc_run(); >diff -ur orig/src/warmstart.c rpcbind-0.1.4/src/warmstart.c >--- orig/src/warmstart.c 2008-01-07 16:16:10.000000000 +0100 >+++ rpcbind-0.1.4/src/warmstart.c 2008-01-07 16:53:45.000000000 +0100 >@@ -113,7 +113,7 @@ > "rpcbind: cannot stat file = %s for reading\n", filename); > goto error; > } >- if ((sbuf.st_uid != 0) || (sbuf.st_mode & S_IRWXG) || >+ if (sbuf.st_uid != getuid() || (sbuf.st_mode & S_IRWXG) || > (sbuf.st_mode & S_IRWXO)) { > fprintf(stderr, > "rpcbind: invalid permissions on file = %s for reading\n",
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 427786
: 290968