473,466 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Licensing check in a loadable .so

hi,
I have a software which has licensing (enabled through flexlm).
Now, an end user can build apps (As loadable modules) using this base
software.
I am introducing a new feature, which I am providing as a .so . The
development teams, release schedules, etc. are completely different
for the base software and the new .so .

1. Is it possible for me to enable licensing for the loadable .so ?

The problem is that as soon as the .so is loaded, all functions become
visible to the end-user who has a license for the base-app, but not
the .so .

I could of course use the dlopen method, but my .so has a thousand
different functions, all of which need to dlsym-ed . Rather than doing
this, I would like a check right when the .so is loaded and forget
about it later.

2. Is there a way to check for licensing in the .init section of
the .so ?

3. Will this be portable across platforms (Linux, Sun, HP 11.11) .

regards and thanks in advance
-Sandeep
Jul 23 '05 #1
5 1640
[answering in comp.lang.c++, keeping the OP's cross-post]
Sandeep Srinivasa wrote:
hi,
I have a software which has licensing (enabled through flexlm).
Now, [...]


Please don't cross-post this to comp.lang.c++, it's off-topic here.
Thanks!
Jul 23 '05 #2
Sandeep Srinivasa wrote:
hi,
I have a software which has licensing (enabled through flexlm).
Now, an end user can build apps (As loadable modules) using this base
software.
(snip) 2. Is there a way to check for licensing in the .init section of
the .so ?


This may be slightly off topic, but:

How do you access the .init section of a .so that isn't loaded by dlopen?
I'm curious because I have tend to make .so libraries for my apps[1] and
let the OS load the .so when the app starts.

I've always thought of .so files like .a (static libraries) except, the OS
just links the .so at runtime (instead of compile time).
[1] I make the libraries using -shared -fPIC switches for gcc.

--
Alvin
Jul 23 '05 #3
What do you mean by access? the init section code is run by the
dynamic linker.

For details:

http://docs.sun.com/app/docs/doc/817...section&a=view

Jul 23 '05 #4
I'm not entirely sure, but I guess it could be possible through the
"constructor" attribute of gcc.
-regards
SSS

Alvin Beach <reply@in_newsgroup.ca> wrote in message news:<Bac5e.6862$vt1.6616@edtnps90>...
Sandeep Srinivasa wrote:
hi,
I have a software which has licensing (enabled through flexlm).
Now, an end user can build apps (As loadable modules) using this base
software.

(snip)
2. Is there a way to check for licensing in the .init section of
the .so ?


This may be slightly off topic, but:

How do you access the .init section of a .so that isn't loaded by dlopen?
I'm curious because I have tend to make .so libraries for my apps[1] and
let the OS load the .so when the app starts.

I've always thought of .so files like .a (static libraries) except, the OS
just links the .so at runtime (instead of compile time).
[1] I make the libraries using -shared -fPIC switches for gcc.

Jul 23 '05 #5

Jan Kandziora wrote:
Sandeep Srinivasa schrieb:
hi,
I have a software which has licensing (enabled through flexlm).
Now, an end user can build apps (As loadable modules) using this base software.
I can't think of any software mechanism for licensing/copy protection

that can't easily be bypassed by any advanced programmer.

You are just annoying paying customers, who will switch to a "cracked" version very soon, as the don't like the whole hassle with your licensing scheme. The will pay for your software, but think you are dumb - like they hate Microsoft for their "product activation".

Don't put too much effort into this "licensing enforcement", as it isn't worth the work. There is a whole herd of people out there who will break into your software just because it annoys them. You can't win.
--
Jan

The license check can be as difficult to disable as you like; some
folks
enjoy this game. Just make sure that the product does nothing worse
than
nag the user if he doesn't appear to have the correct license. That
way, when
their license server craps out, or they have to replace their machine
on Friday
evening before a monday deadline, your licensing check isn't the reason
they
didn't make their deadlines.

Nothing worse than having your distrust of your customer be the reason
they don't make
their quarter.

- Bart

Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Adrian B. | last post by:
Does anyone know of a framework or library that will enable me to use publish/subscribe comms? I want to create a server (using Python) running on a Unix box that will accept client connections...
15
by: nospam | last post by:
Once Yukon is released (whenever that might be) does anyone from MS have any comment on licensing for Yukon and on SQL 2000. I really don't think anyone with SQL 2000 licenses are going to...
6
by: kishore.sainath | last post by:
I have created a set of classes in PHP for internal use in the company. Hence I don't explicitly want to "require" or "require_once" them whenever required. I want to make the library loadable...
5
by: Mike Turco | last post by:
I've been upgrading since VB3 and Access 2. How long do I have to keep these CD's around as proof of valid licensing?
1
by: abhi | last post by:
I want to implement Licensing in .Net. The program will run only if valid license is there. I want to do this by writing some values in Registry, and program will check those values whenever the...
9
by: vbdotnetmania | last post by:
Hi, I have looked through similar posts and have found Ken Tucker giving the reply about looking at article http://windowsforms.net/articles/Licensing.aspx This appears to be for controls and...
2
by: twotoed | last post by:
Hi, Does anyone have any experience with/suggestions for using a webservice for product licensing? What I have in mind is something like where the client app sends their product key to the...
1
by: Ray Stevens | last post by:
I don't see a seperate newsgroup for this, so I am going to post my question here. I understand that Microsoft's new VSTS is being RTM'd and should be available for downloading sometime today. I...
4
by: Steve | last post by:
I'm in the process of finishing a vb2005 application for commerical use, and wanted to know if anyone has any favorites for licensing software? Would like something reasonably priced for a...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.