473,883 Members | 1,626 Online
Bytes | Software Development & Data Engineering Community
+ 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 1661
[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
"constructo r" attribute of gcc.
-regards
SSS

Alvin Beach <reply@in_newsg roup.ca> wrote in message news:<Bac5e.686 2$vt1.6616@edtn ps90>...
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
3522
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 (from GUIs built with wxPython) and publish realtime data updates to them. Any advice on where to start? Thanks. A.B.
15
2480
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 upgrade because the database admin or even the developer is going to convince management it's worth the cost regardless if SQL server can do C# or VB.NET stored procedures. This is because the performance is terrible and Oracle has had Java stored...
6
1247
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 on demand just like mysql or other libraries in php. I want people to use the classes in my library without "requiring" anything. In a nutshell, I want to make my PHP library a .so file in Linux and a
5
1661
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
5146
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 program runs and will run only if valid license is there.
9
5546
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 components and though I don't find it easy to understand it seems like it's appropiate for controls or components, but I can't seem to find anything that just applies a licence for my entire application or a licence for using classes, unless I'm...
2
1388
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 webservice for validation and the webservice then return the validation result. Good idea? Bad idea?
1
1219
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 am a little confused about licensing. The server licensing is $2,799, which seems reasonable. However, I was under the impression that MSDN Universal subscribers would get a license of their choice and only pay a premium if they buy Team Suite. ...
4
1883
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 part-time developer and flexible for both trial and regular licensing. Thanks Steve
0
9793
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11151
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10420
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7134
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5804
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4619
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 we have to send another system
2
4225
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.