Branch | Commit message | Author | Age |
archive/unc-master-3.0 | P-FP: fix BUG_ON releated to priority inheritance | Bjoern Brandenburg | 13 years |
archived-2013.1 | uncachedev: mmap memory that is not cached by CPUs | Glenn Elliott | 12 years |
archived-private-master | Merge branch 'wip-2.6.34' into old-private-master | Andrea Bastoni | 15 years |
archived-semi-part | Merge branch 'wip-semi-part' of ssh://cvs/cvs/proj/litmus/repo/litmus2010 int... | Andrea Bastoni | 15 years |
demo | Further refinements | Jonathan Herman | 14 years |
ecrts-pgm-final | Merge branch 'wip-ecrts14-pgm' of ssh://rtsrv.cs.unc.edu/home/litmus/litmus-r... | Glenn Elliott | 12 years |
ecrts14-pgm-final | Merge branch 'wip-ecrts14-pgm' of ssh://rtsrv.cs.unc.edu/home/litmus/litmus-r... | Glenn Elliott | 12 years |
gpusync-rtss12 | Final GPUSync implementation. | Glenn Elliott | 12 years |
gpusync/staging | Rename IKGLP R2DGLP. | Glenn Elliott | 12 years |
linux-tip | Merge branch 'slab/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/p... | Linus Torvalds | 15 years |
litmus2008-patch-series | add i386 feather-trace implementation | Bjoern B. Brandenburg | 16 years |
master | PSN-EDF: use inferred_sporadic_job_release_at | Bjoern Brandenburg | 9 years |
pgm | make it compile | Glenn Elliott | 12 years |
prop/litmus-signals | Infrastructure for Litmus signals. | Glenn Elliott | 13 years |
prop/robust-tie-break | Fixed bug in edf_higher_prio(). | Glenn Elliott | 13 years |
staging | Fix tracepoint compilation error | Felipe Cerqueira | 13 years |
test | 9/23/2016 | Namhoon Kim | 9 years |
tracing-devel | Test kernel tracing events capabilities | Andrea Bastoni | 16 years |
v2.6.34-with-arm-patches | smsc911x: Add spinlocks around registers access | Catalin Marinas | 15 years |
v2015.1 | Add ARM syscall def for get_current_budget | Bjoern Brandenburg | 10 years |
wip-2011.2-bbb | Litmus core: simplify np-section protocol | Bjoern B. Brandenburg | 14 years |
wip-2011.2-bbb-trace | Refactor sched_trace_log_message() -> debug_trace_log_message() | Andrea Bastoni | 14 years |
wip-2012.3-gpu | SOBLIV draining support for C-EDF. | Glenn Elliott | 12 years |
wip-2012.3-gpu-preport | pick up last C-RM file | Glenn Elliott | 12 years |
wip-2012.3-gpu-rtss13 | Fix critical bug in GPU tracker. | Glenn Elliott | 12 years |
wip-2012.3-gpu-sobliv-budget-w-kshark | Proper sobliv draining and many bug fixes. | Glenn Elliott | 12 years |
wip-aedzl-final | Make it easier to compile AEDZL interfaces in liblitmus. | Glenn Elliott | 15 years |
wip-aedzl-revised | Add sched_trace data for Apative EDZL | Glenn Elliott | 15 years |
wip-arbit-deadline | Fix compilation bug. | Glenn Elliott | 13 years |
wip-aux-tasks | Description of refined aux task inheritance. | Glenn Elliott | 13 years |
wip-bbb | GSN-EDF & Core: improve debug TRACE'ing for NP sections | Bjoern B. Brandenburg | 14 years |
wip-bbb-prio-don | use correct timestamp | Bjoern B. Brandenburg | 14 years |
wip-better-break | Implement hash-based EDF tie-breaking. | Glenn Elliott | 13 years |
wip-binary-heap | Make C-EDF work with simplified binheap_delete | Glenn Elliott | 13 years |
wip-budget | Added support for choices in budget policy enforcement. | Glenn Elliott | 15 years |
wip-color | Summarize schedulability with final record | Jonathan Herman | 13 years |
wip-color-jlh | sched_color: Fixed two bugs causing crashing on experiment restart and a rare... | Jonathan Herman | 13 years |
wip-d10-hz1000 | Enable HZ=1000 on District 10 | Bjoern B. Brandenburg | 15 years |
wip-default-clustering | Feature: Make default C-EDF clustering compile-time configurable. | Glenn Elliott | 15 years |
wip-dissipation-jerickso | Update from 2.6.36 to 2.6.36.4 | Jeremy Erickson | 11 years |
wip-dissipation2-jerickso | Update 2.6.36 to 2.6.36.4 | Jeremy Erickson | 11 years |
wip-ecrts14-pgm | Merge branch 'wip-ecrts14-pgm' of ssh://rtsrv.cs.unc.edu/home/litmus/litmus-r... | Glenn Elliott | 12 years |
wip-edf-hsb | last tested version | Jonathan Herman | 14 years |
wip-edf-os | Lookup table EDF-os | Jeremy Erickson | 12 years |
wip-edf-tie-break | Merge branch 'wip-edf-tie-break' of ssh://rtsrv.cs.unc.edu/home/litmus/litmus... | Glenn Elliott | 13 years |
wip-edzl-critique | Use hr_timer's active checks instead of having own flag. | Glenn Elliott | 15 years |
wip-edzl-final | Implementation of the EDZL scheduler. | Glenn Elliott | 15 years |
wip-edzl-revised | Clean up comments. | Glenn Elliott | 15 years |
wip-events | Added support for tracing arbitrary actions. | Jonathan Herman | 15 years |
wip-extra-debug | DBG: add additional tracing | Bjoern B. Brandenburg | 15 years |
wip-fix-switch-jerickso | Attempt to fix race condition with plugin switching | Jeremy Erickson | 15 years |
wip-fix3 | sched: show length of runqueue clock deactivation in /proc/sched_debug | Bjoern B. Brandenburg | 15 years |
wip-fmlp-dequeue | Improve FMLP queue management. | Glenn Elliott | 14 years |
wip-ft-irq-flag | Feather-Trace: keep track of interrupt-related interference. | Bjoern B. Brandenburg | 14 years |
wip-gpu-cleanup | Enable sched_trace log injection from userspace | Glenn Elliott | 13 years |
wip-gpu-interrupts | Remove option for threading of all softirqs. | Glenn Elliott | 14 years |
wip-gpu-rtas12 | Generalized GPU cost predictors + EWMA. (untested) | Glenn Elliott | 13 years |
wip-gpu-rtss12 | Final GPUSync implementation. | Glenn Elliott | 13 years |
wip-gpu-rtss12-srp | experimental changes to support GPUs under SRP | Glenn Elliott | 13 years |
wip-gpusync-merge | Cleanup priority tracking for budget enforcement. | Glenn Elliott | 11 years |
wip-ikglp | Move RSM and IKGLP imp. to own .c files | Glenn Elliott | 13 years |
wip-k-fmlp | Merge branch 'mpi-master' into wip-k-fmlp | Glenn Elliott | 14 years |
wip-kernel-coloring | Added recolor syscall | Namhoon Kim | 7 years |
wip-kernthreads | Kludge work-queue processing into klitirqd. | Glenn Elliott | 15 years |
wip-klmirqd-to-aux | Allow klmirqd threads to be given names. | Glenn Elliott | 13 years |
wip-kshark | Merge branch 'mpi-staging' into wip-kshark | Jonathan Herman | 13 years |
wip-litmus-3.2 | Merge commit 'v3.2' into litmus-staging | Andrea Bastoni | 13 years |
wip-litmus2011.2 | Cleanup: Coding conformance for affinity stuff. | Glenn Elliott | 14 years |
wip-litmus3.0-2011.2 | Feather-Trace: keep track of interrupt-related interference. | Bjoern B. Brandenburg | 14 years |
wip-master-2.6.33-rt | Avoid deadlock when switching task policy to BACKGROUND (ugly) | Andrea Bastoni | 15 years |
wip-mc | Removed ARM-specific hacks which disabled less common mixed-criticality featu... | Jonathan Herman | 12 years |
wip-mc-bipasa | MC-EDF added | bipasa chattopadhyay | 13 years |
wip-mc-jerickso | Split C/D queues | Jeremy Erickson | 15 years |
wip-mc2-cache-slack | Manually patched mc^2 related code | Ming Yang | 10 years |
wip-mcrit-mac | cosmetic | Mac Mollison | 15 years |
wip-merge-3.0 | Prevent Linux to send IPI and queue tasks on remote CPUs. | Andrea Bastoni | #include <linux/reiserfs_fs.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/pagemap.h>
#include <linux/xattr.h>
#include <linux/slab.h>
#include <linux/reiserfs_xattr.h>
#include <linux/security.h>
#include <asm/uaccess.h>
static int
security_get(struct dentry *dentry, const char *name, void *buffer, size_t size,
int handler_flags)
{
if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX))
return -EINVAL;
if (IS_PRIVATE(dentry->d_inode))
return -EPERM;
return reiserfs_xattr_get(dentry->d_inode, name, buffer, size);
}
static int
security_set(struct dentry *dentry, const char *name, const void *buffer,
size_t size, int flags, int handler_flags)
{
if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX))
return -EINVAL;
if (IS_PRIVATE(dentry->d_inode))
return -EPERM;
return reiserfs_xattr_set(dentry->d_inode, name, buffer, size, flags);
}
static size_t security_list(struct dentry *dentry, char *list, size_t list_len,
const char *name, size_t namelen, int handler_flags)
{
const size_t len = namelen + 1;
if (IS_PRIVATE(dentry->d_inode))
return 0;
if (list && len <= list_len) {
memcpy(list, name, namelen);
list[namelen] = '\0';
}
return len;
}
/* Initializes the security context for a new inode and returns the number
* of blocks needed for the transaction. If successful, reiserfs_security
* must be released using reiserfs_security_free when the caller is done. */
int reiserfs_security_init(struct inode *dir, struct inode *inode,
const struct qstr *qstr,
struct reiserfs_security_handle *sec)
{
int blocks = 0;
int error;
sec->name = NULL;
/* Don't add selinux attributes on xattrs - they'll never get used */
if (IS_PRIVATE(dir))
return 0;
error = security_inode_init_security(inode, dir, qstr, &sec->name,
&sec->value, &sec->length);
if (error) {
if (error == -EOPNOTSUPP)
error = 0;
sec->name = NULL;
sec->value = NULL;
sec->length = 0;
return error;
}
if (sec->length && reiserfs_xattrs_initialized(inode->i_sb)) {
blocks = reiserfs_xattr_jcreate_nblocks(inode) +
reiserfs_xattr_nblocks(inode, sec->length);
/* We don't want to count the directories twice if we have
* a default ACL. */
REISERFS_I(inode)->i_flags |= i_has_xattr_dir;
}
return blocks;
}
int reiserfs_security_write(struct reiserfs_transaction_handle *th,
struct inode *inode,
struct reiserfs_security_handle *sec)
{
int error;
if (strlen(sec->name) < sizeof(XATTR_SECURITY_PREFIX))
return -EINVAL;
error = reiserfs_xattr_set_handle(th, inode, sec->name, sec->value,
sec->length, XATTR_CREATE);
if (error == -ENODATA || error == -EOPNOTSUPP)
error = 0;
return error;
}
void reiserfs_security_free(struct reiserfs_security_handle *sec)
{
kfree(sec->name);
kfree(sec->value);
sec->name = NULL;
sec->value = NULL;
}
const struct xattr_handler reiserfs_xattr_security_handler = {
.prefix = XATTR_SECURITY_PREFIX,
.get = security_get,
.set = security_set,
.list = security_list,
};