VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 18
-EXTRAVERSION = -1.2224_FC5.vs2.0.2.2-rc6
+EXTRAVERSION = -1.2224_FC5.0
NAME=Avast! A bilge rat!
# *DOCUMENTATION*
if (task) {
int pid = (inode->i_ino >> 16) & 0xFFFF;
- if (!proc_pid_visible(task, pid))
+ if (!vx_proc_pid_visible(task, pid))
goto out_drop;
ret = 1;
extern int proc_pid_vx_info(struct task_struct *, char *);
extern int proc_pid_nx_info(struct task_struct *, char *);
+extern int proc_pid_vx_info(struct task_struct *, char *);
+extern int proc_pid_nx_info(struct task_struct *, char *);
+
/* SMP-safe */
static struct dentry *proc_pident_lookup(struct inode *dir,
struct dentry *dentry,
goto out;
rcu_read_lock();
- task = find_proc_task_by_pid(tgid);
+ task = vx_find_proc_task_by_pid(tgid);
if (task)
get_task_struct(task);
rcu_read_unlock();
goto out;
rcu_read_lock();
- task = find_proc_task_by_pid(tid);
+ task = vx_find_proc_task_by_pid(tid);
if (task)
get_task_struct(task);
rcu_read_unlock();
struct task_struct *pos;
rcu_read_lock();
if (tgid && nr) {
- pos = find_proc_task_by_pid(tgid);
+ pos = vx_find_proc_task_by_pid(tgid);
if (pos && thread_group_leader(pos))
goto found;
}
int len;
ino_t ino;
tgid = vx_map_tgid(task->pid);
- if (!proc_pid_visible(task, tgid))
+ if (!vx_proc_pid_visible(task, tgid))
continue;
len = snprintf(buf, sizeof(buf), "%d", tgid);
rcu_read_lock();
/* Attempt to start with the pid of a thread */
if (tid && (nr > 0)) {
- pos = find_proc_task_by_pid(tid);
+ pos = vx_find_proc_task_by_pid(tid);
if (pos && (pos->group_leader == leader))
goto found;
}
task = next_tid(task), pos++) {
int len;
tid = vx_map_pid(task->pid);
- if (!proc_pid_visible(task, tid))
+ if (!vx_proc_pid_visible(task, tid))
continue;
len = snprintf(buf, sizeof(buf), "%d", tid);
#include <asm/tlb.h>
#include <asm/div64.h>
#include "internal.h"
+#include <linux/vs_cvirt.h>
#define LOAD_INT(x) ((x) >> FSHIFT)
#define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
#define VXF_FAKE_INIT (VXF_INFO_INIT|VXF_STATE_INIT)
static inline
-int proc_pid_visible(struct task_struct *task, int pid)
+int vx_proc_pid_visible(struct task_struct *task, int pid)
{
if ((pid == 1) &&
!vx_flags(VXF_FAKE_INIT, VXF_FAKE_INIT))
}
static inline
-struct task_struct *find_proc_task_by_pid(int pid)
+struct task_struct *vx_find_proc_task_by_pid(int pid)
{
struct task_struct *task = find_task_by_pid(pid);
- if (task && !proc_pid_visible(task, pid)) {
+ if (task && !vx_proc_pid_visible(task, pid)) {
vxdprintk(VXD_CBIT(misc, 6),
"dropping task %p[#%u,%u] for %p[#%u,%u]",
task, task->xid, task->pid,
{
struct task_struct *task = get_pid_task(pid, PIDTYPE_PID);
- if (task && !proc_pid_visible(task, pid->nr)) {
+ if (task && !vx_proc_pid_visible(task, pid->nr)) {
vxdprintk(VXD_CBIT(misc, 6),
"dropping task %p[#%u,%u] for %p[#%u,%u]",
task, task->xid, task->pid,
/*
* Accessing ->parent is not SMP-safe, it could
* change from under us. However, we can use a stale
- * value of ->parent under rcu_read_lock(), see
+ * value of ->real_parent under rcu_read_lock(), see
* release_task()->call_rcu(delayed_put_task_struct).
*/
asmlinkage long sys_getppid(void)
*
*/
-#include <linux/config.h>
#include <linux/sched.h>
#include <linux/vs_context.h>
#include <linux/vs_sched.h>
* kernel subsystems and hints as to where to find out what things do.
*/
-#include <linux/config.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/swap.h>
# What parts do we want to build? We must build at least one kernel.
# These are the kernels that are built IF the architecture allows it.
-%define buildup 0
+%define buildup 1
%define buildsmp 0
%define builduml 0
-%define buildxen 1
+%define buildxen 0
%define builddoc 0
# Versions of various parts
# that the kernel isn't the stock distribution kernel, for example by
# adding some text to the end of the version number.
#
-%define sublevel 17
+%define sublevel 18
%define kversion 2.6.%{sublevel}
%define rpmversion 2.6.%{sublevel}
-%define release 1.2187_FC5.0%{?pldistro:.%{pldistro}}%{?date:.%{date}}
+%define release 1.2224_FC5.0%{?pldistro:.%{pldistro}}%{?date:.%{date}}
%define signmodules 0
%define make_target bzImage
%define kernel_arch i386
rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
cp arch/%{_arch}/kernel/asm-offsets.s $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/kernel || :
cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
- cp .kernelrelease $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
if [ -d arch/%{_arch}/scripts ]; then
cp -a arch/%{_arch}/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :