Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
a67271b0
Commit
a67271b0
authored
Sep 06, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parent
18fd3957
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
0 deletions
+71
-0
src/exe/rt_mozilla/src/os_linux/hw_x86/makefile
src/exe/rt_mozilla/src/os_linux/hw_x86/makefile
+15
-0
src/exe/rt_mozilla/src/os_linux/link_rule.mk
src/exe/rt_mozilla/src/os_linux/link_rule.mk
+7
-0
src/exe/rt_mozilla/src/rt_mozilla.cpp
src/exe/rt_mozilla/src/rt_mozilla.cpp
+49
-0
No files found.
src/exe/rt_mozilla/src/os_linux/hw_x86/makefile
0 → 100644
View file @
a67271b0
include
$(pwre_dir_symbols)
-include
$(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/$(type_name)_generic.mk
ifeq
($($(type_name)_generic_mk),)
-include
$(pwre_sroot)/tools/bld/src/$(os_name)/$(type_name)_generic.mk
endif
ifeq
($($(type_name)_generic_mk),)
include
$(pwre_sroot)/tools/bld/src/$(type_name)_generic.mk
endif
-include
../../special.mk
-include
../special.mk
-include
special.mk
src/exe/rt_mozilla/src/os_linux/link_rule.mk
0 → 100644
View file @
a67271b0
ifndef
link_rule_mk
link_rule_mk
:=
1
link
=
$(ldxx)
$(linkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_objs)
\
endif
src/exe/rt_mozilla/src/rt_mozilla.cpp
0 → 100644
View file @
a67271b0
//
// rt_mozilla
// Mozilla cannot be started by a program that has the suid bit set, if
// the current user is not equal to the original user.
// This program resets to original uid before starting mozilla.
//
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
int
main
(
int
argc
,
char
*
argv
[])
{
char
cmd
[
200
];
int
sts
;
bool
remote
=
false
;
strcpy
(
cmd
,
"mozilla "
);
for
(
int
i
=
1
;
i
<
argc
;
i
++
)
{
if
(
strcmp
(
argv
[
i
],
"-remote"
)
==
0
)
{
remote
=
true
;
strcat
(
cmd
,
argv
[
i
]);
strcat
(
cmd
,
"
\"
"
);
}
else
{
strcat
(
cmd
,
argv
[
i
]);
if
(
i
!=
argc
-
1
)
strcat
(
cmd
,
" "
);
}
}
if
(
remote
)
strcat
(
cmd
,
"
\"
"
);
uid_t
uid
=
getuid
();
// printf( "rt_mozilla '%s' uid: %d\n", cmd, uid);
setuid
(
uid
);
sts
=
system
(
cmd
);
if
(
sts
)
exit
(
1
);
else
exit
(
0
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment