projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dd2ab1
)
Remove write access to indicator shared memory
02/43802/1
author
Heeyong Song
<heeyong.song@samsung.com>
Tue, 14 Jul 2015 07:11:48 +0000
(16:11 +0900)
committer
Heeyong Song
<heeyong.song@samsung.com>
Tue, 14 Jul 2015 07:11:48 +0000
(16:11 +0900)
Change-Id: Idad9feae61aab3a3674784b76d719604ca0f0d4c
adaptors/common/shared-file.cpp
patch
|
blob
|
history
diff --git
a/adaptors/common/shared-file.cpp
b/adaptors/common/shared-file.cpp
index
9504246
..
c62a663
100644
(file)
--- a/
adaptors/common/shared-file.cpp
+++ b/
adaptors/common/shared-file.cpp
@@
-97,14
+97,14
@@
bool SharedFile::OpenFile(const char* filename, int size, bool isSystem)
mode |= S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
}
- mFileDescriptor = shm_open( filename, O_RD
WR
, mode );
+ mFileDescriptor = shm_open( filename, O_RD
ONLY
, mode );
if( mFileDescriptor >= 0 )
{
mFilename = filename;
mSize = size;
- mAddress = mmap( NULL, mSize, PROT_READ
| PROT_WRITE
, MAP_SHARED, mFileDescriptor, 0 );
+ mAddress = mmap( NULL, mSize, PROT_READ, MAP_SHARED, mFileDescriptor, 0 );
if( mAddress != MAP_FAILED )
{