[Tizen-submit] 8044: Changes to Tizen:Mobile/kernel-mfld-blackbay

noreply at tizen.org noreply at tizen.org
Fri Aug 2 00:02:06 GMT 2013


Hi,
Chengwei Yang have made the following changes to kernel-mfld-blackbay in project Tizen:Mobile. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #8044

  submit:       Tizen:Mobile:build/kernel-mfld-blackbay(cleanup) -> Tizen:Mobile


Message:
Submitter: Chengwei Yang <chengwei.yang at intel.com>
Comments: submit to OBS
Git project: platform/kernel/kernel-mfld-blackbay
Tag: submit/tizen/20130802.000057
Commit: 9b98b1cbb089ed27c1c9972e3442c65c7cbcf678 Add Smack mount point in sysfs

State:   new        2013-08-01T16:57:45 tizenrobot
Comment: <no comment>
changes files:
--------------
--- kernel-mfld-blackbay.changes
+++ kernel-mfld-blackbay.changes
@@ -0,0 +1,3 @@
+* Thu Jul 25 2013 Brad Peters <brad.t.peters at intel.com> 
+- Added a Smack sysfs mount, ported from upstream
+

spec files:
-----------
--- kernel-mfld-blackbay.spec
+++ kernel-mfld-blackbay.spec
@@ -15,7 +15,7 @@
 URL: http://www.kernel.org/
 Version: %{upstream_version}
 Release: 1
-VCS:     platform/kernel/kernel-mfld-blackbay#submit/tizen/20130619.111018-0-ged78373c932ed29db634951820905daa81f6c1e7
+VCS:     platform/kernel/kernel-mfld-blackbay#submit/tizen/20130802.000057-0-g9b98b1cbb089ed27c1c9972e3442c65c7cbcf678
 BuildRequires: module-init-tools
 BuildRequires: findutils
 BuildRequires: libelf-devel

other changes:
--------------

++++++ kernel-mfld-blackbay-3.0.8.tar.bz2
--- packaging/kernel-mfld-blackbay.changes
+++ packaging/kernel-mfld-blackbay.changes
@@ -1,3 +1,6 @@
+* Thu Jul 25 2013 Brad Peters <brad.t.peters at intel.com> 
+- Added a Smack sysfs mount, ported from upstream
+
 * Fri May 10 2013 Markus Lehtonen <markus.lehtonen at linux.intel.com> submit/tizen_2.1/20130424.070713 at 6d4e74e
 [ Jie Yang ]
 - Enable long press to answer incoming call, fix TZSP-5507.
--- security/smack/smackfs.c
+++ security/smack/smackfs.c
@@ -2063,6 +2063,20 @@
 	.llseek		= generic_file_llseek,
 };
 
+static struct kset *smackfs_kset;
+/**
+ * smk_init_sysfs - initialize /sys/fs/smackfs
+ *
+ */
+static int smk_init_sysfs(void)
+{
+	smackfs_kset = kset_create_and_add("smackfs", NULL, fs_kobj);
+	if (!smackfs_kset)
+		return -ENOMEM;
+	return 0;
+}
+
+
 /**
  * smk_fill_super - fill the /smackfs superblock
  * @sb: the empty superblock
@@ -2183,6 +2197,10 @@
 	if (!security_module_enable(&smack_ops))
 		return 0;
 
+	err = smk_init_sysfs();
+	if (err)	
+		printk(KERN_ERR "smackfs: sysfs mountpoint problem.\n");
+
 	err = register_filesystem(&smk_fs_type);
 	if (!err) {
 		smackfs_mount = kern_mount(&smk_fs_type);


More information about the Tizen-submit mailing list