Develop and Download Open Source Software
Login
Create Account
Help
MY OSDN
Find Software
Magazine
Develop
Pastebin
Software
People
PersonalForge
Magazine
Wiki
OSDN
>
Find Software
>
CaitSith
CaitSith
Summary
Project Summary
Developer Dashboard
Project Reviews
Web Page
Developers
List of RSS Feeds
Statistics
History
Image Gallery
Search Keywords
News
Listed News
Help
Downloads
List of Releases
Help
Source Code
Guide
Browse SVN
Help
Wiki
FrontPage
Title index
Recent changes
Wiki Search
Help
Forums
List of Forums
Open Discussion (1)
Help (1)
Developers (1)
Help
Mailing Lists
list of ML
Help
Ticket
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Help
Browse Subversion Repository
/
[caitsith]
/
trunk
/
caitsith-patch
/
caitsith
/
lsm-4.12.c
Diff of /trunk/caitsith-patch/caitsith/lsm-4.12.c
Parent Directory
|
Revision Log
|
Patch
revision
266
by
kumaneko
, Mon Apr 9 13:45:52 2018 UTC
revision
267
by
kumaneko
, Mon Aug 27 10:15:55 2018 UTC
#
Line 261
static int cs_bprm_check_security(struct
Line 261
static int cs_bprm_check_security(struct
261
return cs_start_execve(bprm, &security->r);
return cs_start_execve(bprm, &security->r);
262
}
}
263
264
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
265
/**
266
* cs_file_open - Check permission for open().
267
*
268
* @f: Pointer to "struct file".
269
*
270
* Returns 0 on success, negative value otherwise.
271
*/
272
static int cs_file_open(struct file *f)
273
{
274
return cs_open_permission(&f->f_path, f->f_flags);
275
}
276
#else
277
/**
/**
278
* cs_file_open - Check permission for open().
* cs_file_open - Check permission for open().
279
*
*
#
Line 273
static int cs_file_open(struct file *f,
Line 286
static int cs_file_open(struct file *f,
286
{
{
287
return cs_open_permission(&f->f_path, f->f_flags);
return cs_open_permission(&f->f_path, f->f_flags);
288
}
}
289
#endif
290
291
#ifdef CONFIG_SECURITY_PATH
#ifdef CONFIG_SECURITY_PATH
292
Colored Diff
Long Colored Diff
Full Colored Diff
Unidiff
Context Diff
Side by Side
Legend:
Removed from v.266
changed lines
Added in v.267
Back to OSDN
">
Back to OSDN
ViewVC Help
Powered by
ViewVC 1.1.26