Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 387938 Details for
Bug 481320
Hardlink issues with grsec's RBAC when portage merge files from TMDPIR to rootfs on the same EXT4 filesystem.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
syncfs python script which may help to reproduce the bug
syncfs.py (text/plain), 550 bytes, created by
Zac Medico
on 2014-11-01 07:45:21 UTC
(
hide
)
Description:
syncfs python script which may help to reproduce the bug
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2014-11-01 07:45:21 UTC
Size:
550 bytes
patch
obsolete
>#!/usr/bin/env python > >import ctypes >import ctypes.util >import os >import sys > >def main(args) : > > usage = "usage: syncfs.py <filename>\n" > > if len(args) != 1: > sys.stderr.write(usage) > return 2 > > try: > fd = os.open(args[0], os.O_RDONLY) > except OSError: > sys.stderr.write(usage) > return 2 > else: > > try: > filename = ctypes.util.find_library("c") > library = ctypes.CDLL(filename, use_errno=True) > if library.syncfs(fd) != 0: > return 1 > finally: > os.close(fd) > > return os.EX_OK > >if __name__ == '__main__': > sys.exit(main(sys.argv[1:]))
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 Raw
Actions:
View
Attachments on
bug 481320
:
370162
| 387938