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 149967 Details for
Bug 232031
[SECURITY]SELinux errors, using of system() call in src/ntfs-3g.c
[?]
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]
Patch for solve security weakness
ntfs-3g-sec.patch (text/plain), 1.16 KB, created by
Jochen Schmitt
on 2007-03-13 18:29:37 UTC
(
hide
)
Description:
Patch for solve security weakness
Filename:
MIME Type:
Creator:
Jochen Schmitt
Created:
2007-03-13 18:29:37 UTC
Size:
1.16 KB
patch
obsolete
>--- ntfs-3g-1.0/src/ntfs-3g.c.org 2007-02-06 14:08:16.000000000 -0500 >+++ ntfs-3g-1.0/src/ntfs-3g.c 2007-03-13 14:22:38.000000000 -0400 >@@ -67,6 +67,8 @@ > #include <sys/xattr.h> > #endif > >+#include <sys/wait.h> >+ > #include "attrib.h" > #include "inode.h" > #include "volume.h" >@@ -224,7 +226,7 @@ > if (!buf) > return -errno; > while (1) { >- int i, j; >+ int i, j; > > br = ntfs_attr_pread(vol->lcnbmp_na, total, > vol->cluster_size, buf); >@@ -2013,19 +2015,35 @@ > } > } > >+ >+int loadmod() >+{ >+ pid_t pid; >+ int status; >+ >+ char *cmd = "/sbin/modprobe"; >+ >+ pid = fork(); >+ if(pid == 0) { >+ execl(cmd, cmd, "fuse", NULL); >+ return (-1); >+ } else if (pid < 0) >+ status = -1; >+ else >+ if(waitpid(pid, &status, 0) != pid) >+ status = -1; >+ return status; >+} >+ >+ > static fuse_fstype load_fuse_module(void) > { > int i; >- struct stat st; >- const char *load_fuse_cmd = "/sbin/modprobe fuse"; > struct timespec req = { 0, 100000000 }; /* 100 msec */ > fuse_fstype fstype; > >- if (stat("/sbin/modprobe", &st) == -1) >- load_fuse_cmd = "modprobe fuse"; >- > if (getuid() == 0) >- system(load_fuse_cmd); >+ loadmod(); > > for (i = 0; i < 10; i++) { > /*
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 232031
:
149954
| 149967